From: timriker Date: Tue, 23 Nov 2004 04:24:20 +0000 (+0000) Subject: perlMath -> Math X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d068359b1ef72323d926b5a11dc2fcb0180cf969;p=infobot.git perlMath -> Math git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1059 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/files/sample/blootbot.chan b/files/sample/blootbot.chan index 783fa9a..20c2181 100644 --- a/files/sample/blootbot.chan +++ b/files/sample/blootbot.chan @@ -1,4 +1,4 @@ -#v1: blootbot -- infobot -- written Tue Nov 23 04:13:22 2004 +#v1: blootbot -- infobot -- written Tue Nov 23 04:23:45 2004 #botpark +autojoin @@ -24,6 +24,7 @@ _default +Factoids +HTTPDtype +Kernel + +Math +allowConv +allowDNS +allowTelling @@ -46,7 +47,6 @@ _default +log +nickometer +page - +perlMath +plug +quote randomFactoidInterval 60 diff --git a/files/sample/blootbot.config b/files/sample/blootbot.config index a51391f..54a805e 100644 --- a/files/sample/blootbot.config +++ b/files/sample/blootbot.config @@ -165,7 +165,7 @@ set ignoreTempExpire 60 ##### # [0/1] irc-cli calculator. -set perlMath 1 +set Math 1 # [0/1] ord/chr etc set allowConv 1 diff --git a/src/Factoids/Core.pl b/src/Factoids/Core.pl index 6c64730..f327361 100644 --- a/src/Factoids/Core.pl +++ b/src/Factoids/Core.pl @@ -496,8 +496,8 @@ sub FactoidStuff { if (defined $result and $result !~ /^0?$/) { # question. &status("question: <$who> $message"); $count{'Question'}++; - } elsif (&IsChanConf("perlMath") > 0 and $addressed) { # perl math. - &loadMyModule("perlMath"); + } elsif (&IsChanConf("Math") > 0 and $addressed) { # perl math. + &loadMyModule("Math"); my $newresult = &perlMath(); if (defined $newresult and $newresult ne "") { diff --git a/src/modules.pl b/src/modules.pl index 27eb521..2204dd6 100644 --- a/src/modules.pl +++ b/src/modules.pl @@ -39,7 +39,7 @@ if ($@) { "News" => "News.pl", "nickometer" => "nickometer.pl", "pager" => "pager.pl", - "perlMath" => "Math.pl", + "Math" => "Math.pl", "plug" => "Plug.pl", "quote" => "Quote.pl", "rootwarn" => "RootWarn.pl",