]> ruin.nu Git - NDIRC.git/commitdiff
Updated defcall
authorMichael Andreen <harv@ruin.nu>
Thu, 21 Mar 2019 15:47:34 +0000 (16:47 +0100)
committerMichael Andreen <harv@ruin.nu>
Thu, 21 Mar 2019 15:47:50 +0000 (16:47 +0100)
Commands/Def.pm

index 099d706ddc50b8ac80ee42aee2b26dd29ecef910..c50f864b1dda054eefed8293b97302fcef8dca5e 100644 (file)
@@ -58,9 +58,8 @@ ORDER BY c.landing_tick;
                                return;
                        }
                }
-               $c->message(notice => $c->disp->targets->{members}, "DEFENSE REQUIRED!! WAKE UP!!");
-               $c->message(privmsg => $c->disp->targets->{members}, "DEFENSE REQUIRED "
-                       ."$mess $callinfo MSG ".$c->nick." TO RESPOND");
+               $c->bot->toTarget(members => "DEFENSE REQUIRED "
+                       ."$mess $callinfo RESPOND TO ".$c->username);
        }
 };