]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/IRC/Schedulers.pl
really support negative booleans and and return -1 for IsChanConf() when they are...
[infobot.git] / blootbot / src / IRC / Schedulers.pl
index d18a35dfdc1eebe1b3a736e60b63b236e2de09a3..8d8f9e24cc577c2170d38e9b986d6fbcf85edbdb 100644 (file)
@@ -924,12 +924,12 @@ sub kernelLoop {
 }
 
 sub wingateCheck {
-    return unless &IsChanConf('Wingate');
+    return unless &IsChanConf('Wingate') > 0;
 
     ### FILE CACHE OF OFFENDING WINGATES.
     foreach (grep /^$host$/, @wingateBad) {
        &status("Wingate: RUNNING ON $host BY $who");
-       &ban("*!*\@$host", "") if &IsChanConf('wingateBan');
+       &ban("*!*\@$host", "") if &IsChanConf('wingateBan') > 0;
 
        my $reason      = &getChanConf('wingateKick');