]> git.donarmstrong.com Git - infobot.git/blobdiff - src/UserExtra.pl
added flood protection for notice()
[infobot.git] / src / UserExtra.pl
index be48b367b41568bc9382e934588710bf272569fb..dae2d6bb2388a3c72b6dec7719c12ae8b96b2e25 100644 (file)
@@ -33,7 +33,8 @@ use vars qw(%channels %chanstats %cmdstats);
        Help => 'tell', Identifier => 'allowTelling',
        Cmdstats => 'Tell') );
 &addCmdHook("main", 'news', ('CODEREF' => 'News::Parse', 
-       Module => 'news', Identifier => 'news') );
+       Module => 'news', ) );
+#      Module => 'news', Identifier => 'news') );
 
 &status("CMD: loaded ".scalar(keys %hooks_main)." MAIN command hooks.");
 
@@ -642,8 +643,6 @@ sub userCommands {
            $p =~ s/\.$//
        }
 
-       &DEBUG("connectivity => $p %");
-
        if ($total_time != (time() - $ircstats{'ConnectTime'}) ) {
            my $tt_format = &Time2String($total_time);
            &DEBUG("tt_format => $tt_format");
@@ -656,7 +655,8 @@ sub userCommands {
        } else {
            $reply = "Currently I'm hooked up to $ircstats{'Server'} but only".
                " for $format_time.  ".
-               "I had to reconnect \002$count\002 times.";
+               "I had to reconnect \002$count\002 times.".
+               "   Connectivity: $p %";
        }
 
        ### REASON.