From a09593b19050524cd651e07d47912e37fcbefae6 Mon Sep 17 00:00:00 2001 From: timriker Date: Wed, 18 Dec 2002 00:57:24 +0000 Subject: [PATCH] some botmail aliases git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@750 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/CommandStubs.pl | 2 +- src/Modules/botmail.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index 9c1fa7e..54035db 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -244,7 +244,7 @@ sub parseCmdHook { &addCmdHook("extra", '(ex)?change', ('CODEREF' => 'Exchange::query', 'Identifier' => 'exchange', 'Cmdstats' => 'exchange', 'Forker' => 1) ); -&addCmdHook("extra", 'botmail', ('CODEREF' => 'botmail::parse', +&addCmdHook("extra", '(botmail|message)', ('CODEREF' => 'botmail::parse', 'Identifier' => 'botmail', 'Cmdstats' => 'botmail') ); ### diff --git a/src/Modules/botmail.pl b/src/Modules/botmail.pl index 3bfebfd..11c98d1 100644 --- a/src/Modules/botmail.pl +++ b/src/Modules/botmail.pl @@ -19,7 +19,7 @@ sub parse { return; } - if ($what =~ /^(for|add)\s+(.*)$/i) { + if ($what =~ /^(to|for|add)\s+(.*)$/i) { &add( split(/\s+/, $2, 2) ); } elsif ($what =~ /^stats?$/i) { -- 2.39.2