Change flash not to print "Flash sent" for deities
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 5 Feb 2011 09:42:58 +0000 (10:42 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Feb 2011 15:06:23 +0000 (16:06 +0100)
It's annoying.  It never did that for mortals.

src/lib/commands/flash.c

index d17c708e439956c3c0cba64d16e4cd82a333fcb5..e07ea128b8fdf3c1296707486d729082be9bfe96 100644 (file)
@@ -152,13 +152,12 @@ sendmessage(struct natstr *us, struct natstr *to, char *message, int verbose)
                     us->nat_cnam, us->nat_cnum, message);
        sent++;
     }
+    
     if (player->god) {
-       if (to)
-           if (sent)
-               pr("Flash sent to %s\n", to->nat_cnam);
-           else
+       if (to) {
+           if (!sent)
                pr("%s is not logged on\n", to->nat_cnam);
-       else if (sent)
+       else if (sent)
            pr("Broadcast sent to %d players\n", sent);
        else
            pr("No-one is logged in\n");