]> git.donarmstrong.com Git - infobot.git/blobdiff - src/core.pl
remove mem increase from DCC CHAT - annoying.
[infobot.git] / src / core.pl
index 71f154acd4f459fae41ad2992ecb461bd4bb6e31..8ce2a7bbc8678ccb42d0e2dcc901978a257396f4 100644 (file)
@@ -215,7 +215,7 @@ sub getChanConf {
     $chan      ||= "_default";
     my @c      = grep /^$chan$/i, keys %chanconf;
 
-    if ($c[0] ne $chan) {
+    if (@c and $c[0] ne $chan) {
        &WARN("c ne chan ($c[0] ne $chan)");
     }
 
@@ -253,8 +253,6 @@ sub showProc {
            }
 
            &status($str);
-           &DCCBroadcast($str) if (&whatInterface() =~ /IRC/ &&
-               grep(/Irc.pl/, keys %moduleAge));
        }
        $memusageOld = $memusage;
     } else {