From: timriker Date: Tue, 23 Nov 2004 08:26:48 +0000 (+0000) Subject: news -> News X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=18f160be0ae3f56ad68238cd995cba447b87837f;p=infobot.git news -> News git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1080 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 6db8b75..eba34ae 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -577,8 +577,8 @@ sub on_join { ); ### NEWS: - if (&IsChanConf('news') && &IsChanConf('newsKeepRead')) { - if (!&loadMyModule('news')) { # just in case. + if (&IsChanConf('News') && &IsChanConf('newsKeepRead')) { + if (!&loadMyModule('News')) { # just in case. &DEBUG('could not load news.'); } else { &News::latest($chan); diff --git a/src/IRC/Schedulers.pl b/src/IRC/Schedulers.pl index 9fbe0c8..df99b72 100644 --- a/src/IRC/Schedulers.pl +++ b/src/IRC/Schedulers.pl @@ -296,7 +296,7 @@ sub newsFlush { return if ($_[0] eq "2"); # defer. } - if (!&ChanConfList("news")) { + if (!&ChanConfList('News')) { &DEBUG("newsFlush: news disabled? (chan => $chan)"); return; } diff --git a/src/Modules/News.pl b/src/Modules/News.pl index a2d7c3e..1e84aac 100644 --- a/src/Modules/News.pl +++ b/src/Modules/News.pl @@ -118,7 +118,7 @@ sub Parse { } elsif ($what =~ /^(un)?notify$/i) { my $state = ($1) ? 0 : 1; - # TODO: don't notify even if "news" is called. + # TODO: don't notify even if "News" is called. if (!&::IsChanConf("newsNotifyAll")) { &::DEBUG("news: chan => $chan, ::chan => $::chan."); &::notice($who, "not available for this channel or disabled altogether."); diff --git a/src/UserExtra.pl b/src/UserExtra.pl index 7f07861..499244f 100644 --- a/src/UserExtra.pl +++ b/src/UserExtra.pl @@ -34,7 +34,7 @@ use vars qw(%channels %chanstats %cmdstats %count %ircstats %param &addCmdHook("main", 'tell|explain', ('CODEREF' => 'tell', Help => 'tell', Identifier => 'allowTelling', Cmdstats => 'Tell') ); -&addCmdHook("main", 'news', ('CODEREF' => 'News::Parse', +&addCmdHook("main", 'News', ('CODEREF' => 'News::Parse', Module => 'News', 'Cmdstats' => 'News' ) ); &addCmdHook("main", 'countrystats', ('CODEREF' => 'countryStats', # Forker => "NULL",