]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/Misc.pl
really support negative booleans and and return -1 for IsChanConf() when they are...
[infobot.git] / blootbot / src / Misc.pl
index fc6f037418788d7cbb34c1388df9e66fd25b78d1..bf95b602216638c250c00dae377f83a13fe2f12d 100644 (file)
@@ -593,7 +593,7 @@ sub hasProfanity {
 sub IsChanConfOrWarn {
     my ($param) = @_;
 
-    if (&IsChanConf($param)) {
+    if (&IsChanConf($param) > 0) {
        return 1;
     } else {
        ### TODO: specific reason why it failed.