This very small change will fix this:
Code:
diff --git a/src/comm.c b/src/comm.c
index 5ec5a3a..0c1ec9e 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -2495,7 +2495,7 @@ void perform_act(const char *orig, struct char_data *ch, struct obj_data *obj,
const char *i = NULL;
char lbuf[MAX_STRING_LENGTH], *buf, *j;
bool uppercasenext = FALSE;
- struct char_data *dg_victim = NULL;
+ struct char_data *dg_victim = (to == vict_obj) ? vict_obj : NULL;
struct obj_data *dg_target = NULL;
char *dg_arg = NULL;
The var dg_victim is usually only set if $N, $M or $S appears in the message. In this case, we send the specific text "you", so this won't trigger. However, when we
know we're sending to the victim, we can set it right away.