From: dms Date: Mon, 2 Oct 2000 17:26:11 +0000 (+0000) Subject: alias to fm for freshmeat forgotten X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cbdd80f6a5f09c9566c2820b9f39cc79ba59cca1;p=infobot.git alias to fm for freshmeat forgotten git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@151 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index d63ae74..a877586 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -41,12 +41,12 @@ sub parseCmdHook { next unless ($args[0] =~ /^$ident$/i); shift(@args); # just gotta do it. - &DEBUG("pCH: found $ident"); + &DEBUG("pCH: $args[0] matched $ident"); my %hash = %{ $cmdhooks{$ident} }; ### DEBUG. foreach (keys %hash) { - &DEBUG(" $ident->$_ => '$hash{$_}'."); + &DEBUG(" $args[0]\->$_ => '$hash{$_}'."); } ### HELP. @@ -143,7 +143,7 @@ sub parseCmdHook { 'Cmdstats' => 'Uptime') ); &addCmdHook('nullski', ('CODEREF' => 'nullski', ) ); sub nullski { my ($arg) = @_; foreach (`$arg`) { &msg($who,$_); } } -&addCmdHook('freshmeat', ('CODEREF' => 'Freshmeat::Freshmeat', +&addCmdHook('(fm|freshmeat)', ('CODEREF' => 'Freshmeat::Freshmeat', 'Identifier' => 'freshmeat', 'Cmdstats' => 'Freshmeat', 'Module' => 'freshmeat', 'Help' => 'freshmeat') );