]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/modules.pl
root[wW]arn -> RootWarn
[infobot.git] / blootbot / src / modules.pl
index a86900ce5b6ece808487537e665d392d9a5c5faf..9429dfd4b1a4a78eeae9afdf26cc24cc60fd0130 100644 (file)
@@ -22,46 +22,49 @@ if ($@) {
 
 ### MODULES.
 %myModules = (
-       "bzflag"        => "BZFlag.pl",
-       "countdown"     => "Countdown.pl",
-       "debian"        => "Debian.pl",
-       "debianExtra"   => "DebianExtra.pl",
-       "dict"          => "Dict.pl",
-       "dumpvars"      => "DumpVars.pl",
-       "symdump"       => "DumpVars2.pl",
-       "exchange"      => "Exchange.pl",
-       "factoids"      => "Factoids.pl",
-       "kernel"        => "Kernel.pl",
-       "perlMath"      => "Math.pl",
-       "news"          => "News.pl",
-       "plug"          => "Plug.pl",
-       "quote"         => "Quote.pl",
-       "rootwarn"      => "RootWarn.pl",
+       "babelfish"     => "babelfish.pl",
+       "botmail"       => "botmail.pl",
+       "BZFlag"        => "BZFlag.pl",
+       "countdown"     => "countdown.pl",
+       "Debian"        => "Debian.pl",
+       "DebianExtra"   => "DebianExtra.pl",
+       "Dict"          => "Dict.pl",
+       "DumpVars"      => "DumpVars.pl",
+       "Exchange"      => "Exchange.pl",
+       "Factoids"      => "Factoids.pl",
+       "HTTPDtype"     => "HTTPDtype.pl",
+       "insult"        => "insult.pl",
+       "UserDCC"       => "UserDCC.pl",
+       "Kernel"        => "Kernel.pl",
+       "News"          => "News.pl",
+       "nickometer"    => "nickometer.pl",
+       "pager"         => "pager.pl",
+       "Math"          => "Math.pl",
+       "Plug"          => "Plug.pl",
+       "Quote"         => "Quote.pl",
+       "RootWarn"      => "RootWarn.pl",
+       "rss"           => "Rss.pl",
        "search"        => "Search.pl",
        "slashdot"      => "Slashdot3.pl",
+       "symdump"       => "DumpVars2.pl",
        "topic"         => "Topic.pl",
        "units"         => "Units.pl",
        "uptime"        => "Uptime.pl",
-       "ircdcc"        => "UserDCC.pl",
        "userinfo"      => "UserInfo.pl",
        "weather"       => "Weather.pl",
-       "wwwsearch"     => "W3Search.pl",
        "whatis"        => "WhatIs.pl",
+       "wikipedia"     => "wikipedia.pl",
        "wingate"       => "Wingate.pl",
-       "babelfish"     => "babel.pl",
-       "insult"        => "insult.pl",
-       "nickometer"    => "nickometer.pl",
+       "wwwsearch"     => "W3Search.pl",
        "zfi"           => "zfi.pl",
        "zippy"         => "Zippy.pl",
        "zsi"           => "zsi.pl",
-       "botmail"       => "botmail.pl",
-       "httpdtype"     => "HTTPDtype.pl",
 );
 ### THIS IS NOT LOADED ON RELOAD :(
 my @myModulesLoadNow;
 my @myModulesReloadNot;
 BEGIN {
-    @myModulesLoadNow  = ('topic', 'uptime', 'news', 'rootWarn', 'symdump', 'botmail');
+    @myModulesLoadNow  = ('topic', 'uptime', 'News', 'RootWarn', 'symdump', 'botmail');
     @myModulesReloadNot        = ('IRC/Irc.pl','IRC/Schedulers.pl');
 }
 
@@ -187,9 +190,7 @@ sub loadMyModulesNow {
            next;
        }
 
-       # weird hack to get rootwarn to work.
-       # it may break on other cases though, any ideas?
-       &loadMyModule( $myModules{$_} || $myModules{lc $_} );
+       &loadMyModule($myModules{$_});
        $loaded++;
     }