]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
ignore case on autojoin
[infobot.git] / src / DynaConfig.pl
index 59badae9a80d776b2c475362a01b885c19152715..e1cf464a1a68960ac691cf6b98e0002aa5639923 100644 (file)
@@ -276,7 +276,7 @@ sub readChanFile {
            $cache{negative} = 1;
 #          $chanconf{$chan}{$1} = 0;
 
-       } elsif (/^[\s\t]+(\S+)[\ss\t]+(.*)$/) {# what = val.
+       } elsif (/^[\s\t]+(\S+)[\s\t]+(.*)$/) {# what = val.
            $chanconf{$chan}{$1} = $2;
 
        } else {
@@ -821,6 +821,11 @@ sub rehashConfVars {
            &loadMyModule('RootWarn');
            delete $cache{confvars}{$_};
        }
+
+       if (/^onjoin$/i and $i) {
+           &loadMyModule('OnJoin');
+           delete $cache{confvars}{$_};
+       }
     }
 
     &DEBUG("end of rehashConfVars");