]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/IrcHooks.pl
- forgot $ - shoot me.
[infobot.git] / src / IRC / IrcHooks.pl
index 8623d87fb29cb13cb016617e162b752a067bf7a2..45fee8b074e0a14fed32232b85a87ce1d6d827a3 100644 (file)
@@ -151,7 +151,7 @@ sub on_endofmotd {
     $ircstats{'ConnectTime'}   = time();
     $ircstats{'ConnectCount'}++;
     if (defined $ircstats{'DisconnectTime'}) {
-       ircstats{'OffTime'}     += time() - $ircstats{'DisconnectTime'};
+       $ircstats{'OffTime'}    += time() - $ircstats{'DisconnectTime'};
     }
 
     # first time run.
@@ -374,9 +374,7 @@ sub on_disconnect {
     # clear any variables on reconnection.
     $nickserv = 0;
 
-    &DEBUG("on_disconnect: 1");
     &clearIRCVars();
-    &DEBUG("on_disconnect: 2");
 
     if (!defined $self) {
        &WARN("on_disconnect: self is undefined! WTF");