]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CommandStubs.pl
- on_disconnect: check if $self is defined. debugging added.
[infobot.git] / src / CommandStubs.pl
index 92eb15c116902d32c086a837e802a1cfe57ae024..c83d46a6cc1746c4757dd75e4f3b37bddf146a40 100644 (file)
@@ -797,7 +797,7 @@ sub do_verstats {
        return;
     }
 
-    &msg($who, "Sending CTCP VERSION...");
+    &msg($who, "Sending CTCP VERSION to #chan...");
     $conn->ctcp("VERSION", $chan);
     $cache{verstats}{chan}     = $chan;
     $cache{verstats}{who}      = $who;
@@ -806,13 +806,12 @@ sub do_verstats {
     $conn->schedule(30, sub {
        my $c           = lc $cache{verstats}{chan};
        @vernicktodo    = ();
+
        foreach (keys %{ $channels{$c}{''} } ) {
            next if (grep /^\Q$_\E$/i, @vernick);
            push(@vernicktodo, $_);
        }
 
-       &DEBUG("verstats(30): we have ".scalar(@vernicktodo)." nicks to do");
-
        &verstats_flush();
     } );