From 29110f0d4d51e0c1938523afa4d77c11973f38a6 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Fri, 17 Dec 2010 19:44:27 +0000 Subject: [PATCH] Minor change in speech.c --- src/speech.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/speech.c b/src/speech.c index 3bfcbe7..154fe31 100644 --- a/src/speech.c +++ b/src/speech.c @@ -426,7 +426,7 @@ do_pemit_list(dbref player, char *list, const char *message, int flags) { char *bp, *p; char *nsbuf, *nspbuf; - char *l; + const char *l; dbref who; int nospoof; @@ -439,8 +439,8 @@ do_pemit_list(dbref player, char *list, const char *message, int flags) list[BUFFER_LEN - 1] = '\0'; l = trim_space_sep(list, ' '); - while ((p = split_token(&l, ' '))) { - who = noisy_match_result(player, p, NOTYPE, MAT_PLAYER | MAT_ABSOLUTE); + while (l && *l && (p = next_in_list(&l))) { + who = noisy_match_result(player, p, NOTYPE, MAT_EVERYTHING); if (GoodObject(who) && okay_pemit(player, who)) { if (nospoof && Nospoof(who)) { if (Paranoid(who)) { -- 2.30.2