From 20feb3d4a09df588d0a36df1cedb2a9357c9c985 Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 26 May 2001 13:43:35 +0000 Subject: [PATCH] - fixed "news #debian latest" - how did I break it? - $chan = "*" => "_default" for IsChanConf - fixed. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@498 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/UserExtra.pl | 3 +-- blootbot/src/core.pl | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blootbot/src/UserExtra.pl b/blootbot/src/UserExtra.pl index b48158c..067370b 100644 --- a/blootbot/src/UserExtra.pl +++ b/blootbot/src/UserExtra.pl @@ -33,8 +33,7 @@ use vars qw(%channels %chanstats %cmdstats); Help => 'tell', Identifier => 'allowTelling', Cmdstats => 'Tell') ); &addCmdHook("main", 'news', ('CODEREF' => 'News::Parse', - Module => 'news', 'Cmdstats' => 'News', - Identifier => 'news' ) ); + Module => 'news', 'Cmdstats' => 'News' ) ); &addCmdHook("main", 'countrystats', ('CODEREF' => 'countryStats', # Forker => "NULL", ) ); diff --git a/blootbot/src/core.pl b/blootbot/src/core.pl index 36e8c76..80a4be9 100644 --- a/blootbot/src/core.pl +++ b/blootbot/src/core.pl @@ -282,6 +282,7 @@ sub getChanConf { $c ||= $chan; $c ||= "_default"; + $c = "_default" if ($c eq "*"); # fix! my @c = grep /^$c$/i, keys %chanconf; if (@c) { -- 2.39.5