X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Commands%2FDef.pm;fp=Commands%2FDef.pm;h=c50f864b1dda054eefed8293b97302fcef8dca5e;hp=099d706ddc50b8ac80ee42aee2b26dd29ecef910;hb=4c84eb6e64b730b9b8726d30e70c355a5056b83c;hpb=dcb7d5ee3791ae43e7fcaf3639ce5b70f6c659ab diff --git a/Commands/Def.pm b/Commands/Def.pm index 099d706..c50f864 100644 --- a/Commands/Def.pm +++ b/Commands/Def.pm @@ -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); } };