]> ruin.nu Git - NDIRC.git/blobdiff - Commands/Def.pm
Removed the global variables for special chans, using targets hashref in Dispatcher...
[NDIRC.git] / Commands / Def.pm
index b115dd44be93aefc3cdcdc315e34fa02a88302fb..d7862a364fdbe6d1ddda62cfeda6a0f34e4e6096 100644 (file)
@@ -75,9 +75,9 @@ ORDER BY c.landing_tick;
                        return;
                }
        }
-       $c->message(notice => $ND::memchan, "DEFENSE REQUIRED!! WAKE UP!!");
-       $c->message(privmsg => $ND::memchan, "DEFENSE REQUIRED $mess $callinfo MSG "
-               .$c->nick." TO RESPOND");
+       $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");
 }
 
 sub settype