From: timriker Date: Sun, 3 Nov 2002 05:38:22 +0000 (+0000) Subject: initial weather fixes, needs to use Geo::METAR before it works X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=47cf8e9768c0e4f0dfba683366e12c5e175e7edd;p=infobot.git initial weather fixes, needs to use Geo::METAR before it works git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@596 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/CommandStubs.pl b/blootbot/src/CommandStubs.pl index 32e1005..e0c6013 100644 --- a/blootbot/src/CommandStubs.pl +++ b/blootbot/src/CommandStubs.pl @@ -120,7 +120,7 @@ sub parseCmdHook { # check if CODEREF exists. if (!defined &{ $hash{'CODEREF'} }) { - &WARN("coderef $hash{'CODEREF'} don't exist."); + &WARN("coderef $hash{'CODEREF'} does not exist."); if (defined $who) { &msg($who, "coderef does not exist for $ident."); } @@ -220,7 +220,7 @@ sub parseCmdHook { &addCmdHook("extra", 'verstats', ('CODEREF' => 'do_verstats' ) ); &addCmdHook("extra", 'weather', ('CODEREF' => 'Weather::Weather', 'Identifier' => 'weather', 'Help' => 'weather', - 'Cmdstats' => 'Weather') ); + 'Cmdstats' => 'weather', 'Forker' => 1) ); &addCmdHook("extra", 'bzflist', ('CODEREF' => 'BZFlag::list', 'Identifier' => 'bzflag', 'Cmdstats' => 'BZFlag', 'Forker' => 1) ); diff --git a/blootbot/src/modules.pl b/blootbot/src/modules.pl index ae2dac5..1f76571 100644 --- a/blootbot/src/modules.pl +++ b/blootbot/src/modules.pl @@ -43,6 +43,7 @@ if ($@) { "uptime" => "Uptime.pl", "ircdcc" => "UserDCC.pl", "userinfo" => "UserInfo.pl", + "weather" => "Weather.pl", "wwwsearch" => "W3Search.pl", "whatis" => "WhatIs.pl", "wingate" => "Wingate.pl",