From: Ari Johnson Date: Fri, 17 Dec 2010 19:44:27 +0000 (+0000) Subject: Minor change in speech.c X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=29110f0d4d51e0c1938523afa4d77c11973f38a6;p=cobramush.git Minor change in speech.c --- 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)) {