]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
- show total commands used in "status"
[infobot.git] / src / IRC / IrcHooks.pl
index 561eebb5c7e30cee56b5dda4cc8c9c0c61ba72a2..951991855d1d7853027f2ba959742f87974218d4 100644 (file)
@@ -516,7 +516,7 @@ sub on_join {
     }
 
     ### chanlimit check.
-    &chanLimitVerify($chan);
+#    &chanLimitVerify($chan);
 
     ### wingate:
     &wingateCheck();
@@ -829,7 +829,7 @@ sub on_quit {
 
        # chanlimit code.
        if (&ChanConfList("chanlimitcheck") and !scalar keys %netsplit) {
-           &DEBUG("on_quit: netsplit detected; disabling chan limit.");
+           &DEBUG("on_quit: netsplit detected on $chan; disabling chan limit.");
            &rawout("MODE $chan -l");
        }
 
@@ -997,6 +997,11 @@ sub on_who {
        return;
     }
 
+    if ($args[5] =~ /^nickserv$/i and !$nickserv) {
+       &DEBUG("ok... we did a who for nickserv.");
+       &rawout("PRIVMSG NickServ :IDENTIFY $param{'nickServ_pass'}");
+    }
+
     $nuh{lc $args[5]} = $args[5]."!".$args[2]."\@".$args[3];
 }