]> git.donarmstrong.com Git - infobot.git/commitdiff
- fixed "news #debian latest" - how did I break it?
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 26 May 2001 13:43:35 +0000 (13:43 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 26 May 2001 13:43:35 +0000 (13:43 +0000)
- $chan = "*" => "_default" for IsChanConf - fixed.

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@498 c11ca15a-4712-0410-83d8-924469b57eb5

src/UserExtra.pl
src/core.pl

index b48158c9765deec2187de2a644d9986c832a3e4d..067370bf861739b88093dee1d38a6f0753ed61a5 100644 (file)
@@ -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",
  ) );
index 36e8c76b66eca42a3d37072b62892305937abd22..80a4be91327bee46cd85e9b2eb2cd37654ec57a0 100644 (file)
@@ -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) {