]> git.donarmstrong.com Git - infobot.git/commitdiff
news -> News
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 08:26:48 +0000 (08:26 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 08:26:48 +0000 (08:26 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1080 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl
src/IRC/Schedulers.pl
src/Modules/News.pl
src/UserExtra.pl

index 6db8b75e1ed6a4b31dbca093c4c0d5ec2bb27897..eba34ae51a1118e562c0044ace26e0cd60aec25e 100644 (file)
@@ -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);
index 9fbe0c8cc5c64c03780ff9bfc3171b9b2c5794e7..df99b72cc2aaf72a0d1f26682377cc51c54d48c2 100644 (file)
@@ -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;
     }
index a2d7c3eab88b997ed0e5154a0f311a45fcf157ee..1e84aac50f682908e1b1d53f75aed7ce2a52f7a8 100644 (file)
@@ -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.");
index 7f07861657a72e639fd50932e9b635e9a98e74ed..499244f4e5a352b9f9f2e9f3830c224f75de3e4e 100644 (file)
@@ -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",