]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/flash.c
(sendmessage): Skip players not in state PS_PLAYING. Flashes to them
[empserver] / src / lib / commands / flash.c
index 5043e6749e603c63399ad7337499eba46c8a3f20..2f31d337118b85487e832e293be610a782636b27 100644 (file)
@@ -151,6 +151,8 @@ sendmessage(struct natstr *us, struct natstr *to, char *message
     time(&now);
     tm = localtime(&now);
     for (other = player_next(0); other != 0; other = player_next(other)) {
+       if (other->state != PS_PLAYING)
+           continue;
        if (to && other->cnum != to->nat_cnum)
            continue;
        if (!(wto = getnatp(other->cnum)))