From: timriker Date: Tue, 19 Nov 2002 23:36:29 +0000 (+0000) Subject: default to _default X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=02ab5319c6f230c0e95dd78ac561c960f7e90de6;p=infobot.git default to _default git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@621 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/core.pl b/blootbot/src/core.pl index 1934900..6866a98 100644 --- a/blootbot/src/core.pl +++ b/blootbot/src/core.pl @@ -316,9 +316,11 @@ sub getChanConf { sub getChanConfDefault { my($what, $default, $chan) = @_; + $chan ||= "_default"; + if (exists $param{$what}) { if (!exists $cache{config}{$what}) { - &status("conf: backward-compat: found param{$what} ($param{$what}) instead."); + &status("conf: backward-compat: found param{$what} ($param{$what}) for $chan instead."); $cache{config}{$what} = 1; } @@ -328,7 +330,7 @@ sub getChanConfDefault { return $val if (defined $val); $param{$what} = $default; - &status("conf: auto-setting param{$what} = $default"); + &status("conf: $chan auto-setting param{$what} = $default"); $cache{config}{$what} = 1; return $default; }