From: Ari Johnson Date: Fri, 17 Dec 2010 19:44:27 +0000 (+0000) Subject: Minor change in speech.c X-Git-Tag: 0.73p2~14 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=5da03fdd9069ac7de23157bdc98bf335328ff584;p=cobramush.git Minor change in speech.c (cherry picked from commit 29110f0d4d51e0c1938523afa4d77c11973f38a6) --- diff --git a/src/speech.c b/src/speech.c index aff98b8..a2e9fc0 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)) {