git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1146
c11ca15a-4712-0410-83d8-
924469b57eb5
-
+ * src/core.pl: getChanConf checks _default too
* src/: "s/hasParam/IsChanConfOrWarn/"
* src/: add handling for channel specific factoids:
"#botpark logs" -> http://ibot.rikers.org/botpark
if (0 and $c[0] ne $c) {
&WARN("c ne chan ($c[0] ne $chan)");
}
+ if (!defined $chanconf{$c[0]}{$param} and ($c ne '_default')) {
+ return &getChanConf($param, '_default');
+ }
+ #&DEBUG("gCC: $param,$c \"" . $chanconf{$c[0]}{$param} . '"');
return $chanconf{$c[0]}{$param};
}
-# &DEBUG("gCC: returning _default... ");
+ #&DEBUG("gCC: returning _default... " . $chanconf{"_default"}{$param});
return $chanconf{"_default"}{$param};
}