From ec49a5aea8a18720c4f780680de2251cd31216b4 Mon Sep 17 00:00:00 2001 From: timriker Date: Tue, 23 Nov 2004 05:40:07 +0000 Subject: [PATCH] topic -> Topic git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1068 c11ca15a-4712-0410-83d8-924469b57eb5 --- files/sample/blootbot.chan | 2 +- files/sample/blootbot.config | 2 +- src/CommandStubs.pl | 4 ++-- src/IRC/IrcHooks.pl | 2 +- src/modules.pl | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/files/sample/blootbot.chan b/files/sample/blootbot.chan index d6763ed..3290b60 100644 --- a/files/sample/blootbot.chan +++ b/files/sample/blootbot.chan @@ -32,6 +32,7 @@ _default +Quote +Rss +Search + +Topic +allowConv +allowDNS +allowTelling @@ -65,7 +66,6 @@ _default +slashdot +spell +tell - +topic +units +userinfo +weather diff --git a/files/sample/blootbot.config b/files/sample/blootbot.config index 077b173..2f3df64 100644 --- a/files/sample/blootbot.config +++ b/files/sample/blootbot.config @@ -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 diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index 1cc0159..00659ba 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -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; diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl index 3ed802c..fc71c18 100644 --- a/src/IRC/IrcHooks.pl +++ b/src/IRC/IrcHooks.pl @@ -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); } diff --git a/src/modules.pl b/src/modules.pl index 49e3248..8641ee9 100644 --- a/src/modules.pl +++ b/src/modules.pl @@ -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'); } -- 2.39.5