]> git.donarmstrong.com Git - infobot.git/commitdiff
minor updates, warn fixes, removed comments
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Feb 2001 12:59:40 +0000 (12:59 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 20 Feb 2001 12:59:40 +0000 (12:59 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@408 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl
src/core.pl
src/modules.pl

index 748ee2be13fc91ca233e8fc5f962486fae168d0f..26e3b3eda87bb1991c6a10b251ab19de5b439807 100644 (file)
@@ -346,7 +346,7 @@ sub Modules {
        return unless (&hasParam("topic"));
 
        my $chan        = $talkchannel;
-       my @args        = split(/ /, $2);
+       my @args        = split / /, $2 || "";
 
        if (!scalar @args) {
            &msg($who,"Try 'help topic'");
index b75fb1d14b7a7057d520fe38dc813c67932d3e42..4d5363ec47b543cd65cf8ac34194f01f01c2a83a 100644 (file)
@@ -130,14 +130,9 @@ sub ChanConfList {
     return unless (defined $param);
     my %chan   = &getChanConfList($param);
 
-    # what if we have it set on _default and a few channels with
-    # negative set? perhaps we should disable -blah settings to remove
-    # this mess.
-
     if (exists $chan{_default}) {
        return keys %chanconf;
     } else {
-       ### TODO: -option is included aswell though.
        return keys %chan;
     }
 }
index e170077b9e7c65f13d2889770c28cb0032fab269..fa93df42615dd28399939e60e244f6ccc12f8eb6 100644 (file)
@@ -189,7 +189,7 @@ sub loadMyModulesNow {
 
        if (!&IsParam($_) and !&IsChanConf($_)) {
            if (exists $myModules{$_}) {
-               &DEBUG("myModule: $myModules{$_} (1) not loaded.");
+               &status("myModule: $myModules{$_} (1) not loaded.");
            } else {
                &DEBUG("myModule: $_ (2) not loaded.");
            }