]> git.donarmstrong.com Git - infobot.git/commitdiff
topic -> Topic
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 05:40:07 +0000 (05:40 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 23 Nov 2004 05:40:07 +0000 (05:40 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1068 c11ca15a-4712-0410-83d8-924469b57eb5

files/sample/blootbot.chan
files/sample/blootbot.config
src/CommandStubs.pl
src/IRC/IrcHooks.pl
src/modules.pl

index d6763edadc1ecd5882b361f682b6b7a4577999a4..3290b60c862bf775c0ebbfe3bbd27b9cf7a3c1a0 100644 (file)
@@ -32,6 +32,7 @@ _default
     +Quote
     +Rss
     +Search
+    +Topic
     +allowConv
     +allowDNS
     +allowTelling
@@ -65,7 +66,6 @@ _default
     +slashdot
     +spell
     +tell
-    +topic
     +units
     +userinfo
     +weather
index 077b173286b939b1254b4201341507c96065982a..2f3df64d1f5b8c1afeac5aca6dbb9d4ef6dd4ac2 100644 (file)
@@ -250,7 +250,7 @@ set slashdot                true
 set spell              true
 
 # [0/1] Advanced topic management.
-set topic              true
+set Topic              true
 
 # [0/1] User Information Services.
 set userinfo           true
index 1cc01591c48662e379b3ad62d06e2e5940c68f27..00659ba29e59383675d2b835c20f890d90bc623b 100644 (file)
@@ -410,7 +410,7 @@ sub Modules {
     # Topic management. xk++
     # may want to add a userflags for topic. -xk
     if ($message =~ /^topic(\s+(.*))?$/i) {
-       return unless (&hasParam("topic"));
+       return unless (&hasParam('Topic'));
 
        my $chan        = $talkchannel;
        my @args        = split / /, $2 || "";
@@ -449,7 +449,7 @@ sub Modules {
        }
 
        # now lets do it.
-       &loadMyModule($myModules{'topic'});
+       &loadMyModule($myModules{'Topic'});
        &Topic($chan, $thiscmd, join(' ', @args));
        $cmdstats{'Topic'}++;
        return;
index 3ed802c0f63f906d2f3636ef4e77b93686e1ced7..fc71c18011dd64c899fe6f3bf5d44894fc952335 100644 (file)
@@ -1058,7 +1058,7 @@ sub on_topic {
        &status(">>> topic/$b_blue$chan$ob by $b_cyan$nick$ob -> $topic");
     } else {                                           # join.
        my ($nick, $chan, $topic) = $event->args;
-       if (&IsChanConf("topic")) {
+       if (&IsChanConf('Topic')) {
            $topic{$chan}{'Current'}    = $topic;
            &topicAddHistory($chan,$topic);
        }
index 49e324877a7b7bb12a1e7fa241de5c92964844c0..8641ee97ef14ba7ff8e2568574ca68ea28b54087 100644 (file)
@@ -47,7 +47,7 @@ if ($@) {
        "Search"        => "Search.pl",
        "slashdot"      => "slashdot.pl",
        "DumpVars2"     => "DumpVars2.pl",
-       "topic"         => "Topic.pl",
+       "Topic"         => "Topic.pl",
        "units"         => "Units.pl",
        "uptime"        => "Uptime.pl",
        "userinfo"      => "UserInfo.pl",
@@ -64,7 +64,7 @@ if ($@) {
 my @myModulesLoadNow;
 my @myModulesReloadNot;
 BEGIN {
-    @myModulesLoadNow  = ('topic', 'uptime', 'News', 'RootWarn', 'DumpVars2', 'botmail');
+    @myModulesLoadNow  = ('Topic', 'uptime', 'News', 'RootWarn', 'DumpVars2', 'botmail');
     @myModulesReloadNot        = ('IRC/Irc.pl','IRC/Schedulers.pl');
 }