X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=blootbot%2Fsrc%2Fmodules.pl;h=73bed3a7ef9e649f3d05effcb7095f7333664acd;hb=e61d068a2dfd38d875472132e0f81f345bb2137c;hp=27eb521ec2879070f097722eda9ef87af1a49735;hpb=cbc6dce431da7160da53780eb0ba08042e65d58f;p=infobot.git diff --git a/blootbot/src/modules.pl b/blootbot/src/modules.pl index 27eb521..73bed3a 100644 --- a/blootbot/src/modules.pl +++ b/blootbot/src/modules.pl @@ -39,20 +39,19 @@ if ($@) { "News" => "News.pl", "nickometer" => "nickometer.pl", "pager" => "pager.pl", - "perlMath" => "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", - "userinfo" => "UserInfo.pl", - "weather" => "Weather.pl", - "whatis" => "WhatIs.pl", + "Math" => "Math.pl", + "Plug" => "Plug.pl", + "Quote" => "Quote.pl", + "RootWarn" => "RootWarn.pl", + "Rss" => "Rss.pl", + "Search" => "Search.pl", + "slashdot" => "slashdot.pl", + "DumpVars2" => "DumpVars2.pl", + "Topic" => "Topic.pl", + "Units" => "Units.pl", + "Uptime" => "Uptime.pl", + "UserInfo" => "UserInfo.pl", + "Weather" => "Weather.pl", "wikipedia" => "wikipedia.pl", "wingate" => "Wingate.pl", "wwwsearch" => "W3Search.pl", @@ -64,7 +63,7 @@ if ($@) { my @myModulesLoadNow; my @myModulesReloadNot; BEGIN { - @myModulesLoadNow = ('topic', 'uptime', 'News', 'rootWarn', 'symdump', 'botmail'); + @myModulesLoadNow = ('Topic', 'Uptime', 'News', 'RootWarn', 'DumpVars2', 'botmail'); @myModulesReloadNot = ('IRC/Irc.pl','IRC/Schedulers.pl'); } @@ -190,9 +189,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++; }