]> git.donarmstrong.com Git - infobot.git/commitdiff
more multiconnect issues
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 1 Feb 2010 20:33:10 +0000 (20:33 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 1 Feb 2010 20:33:10 +0000 (20:33 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1877 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl

index 409b818c4e91b70287d7333996e5e79eb36131a3..249667a9632abce20103e54d3fb5e7b917c4784f 100644 (file)
@@ -816,24 +816,25 @@ sub on_notice {
     my $nick    = $event->nick();
     my $chan    = ( $event->to )[0];
     my $args    = ( $event->args )[0];
+    my $mynick  = $conn->nick();
 
     if ( $nick =~ /^NickServ$/i ) {    # nickserv.
-        &status("NickServ: <== '$args'");
+        &status("NickServ: $mynick <== '$args'");
 
         my $check = 0;
         $check++ if ( $args =~ /^This nickname is registered/i );
         $check++ if ( $args =~ /nickname.*owned/i );
 
         if ($check) {
-            &status('nickserv told us to register; doing it.');
+            &status("nickserv told $mynick to register; doing it.");
 
             if ( &IsParam('nickServ_pass') ) {
-                &status('NickServ: ==> Identifying.');
+                &status("NickServ: ==> Identifying as $mynick.");
                 &rawout("PRIVMSG NickServ :IDENTIFY $param{'nickServ_pass'}");
                 return;
             }
             else {
-                &status("We can't tell nickserv a passwd ;(");
+                &status("$mynick can't tell nickserv a passwd ;(");
             }
         }
 
@@ -844,8 +845,7 @@ sub on_notice {
             foreach ( &ChanConfList('chanServ_ops') ) {
                 next unless &chanServCheck($_);
                 next if ($done);
-                &DEBUG(
-                    'nickserv activated or restarted; doing chanserv check.');
+                &DEBUG('nickserv activated or restarted; doing chanserv check.');
                 $done++;
             }