]> git.donarmstrong.com Git - infobot.git/commitdiff
remove mem increase from DCC CHAT - annoying.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 4 Feb 2001 12:12:49 +0000 (12:12 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 4 Feb 2001 12:12:49 +0000 (12:12 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@329 c11ca15a-4712-0410-83d8-924469b57eb5

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 {