From 8ec96501e76aeaa645d6d106874e03c3c135aa1a 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@750 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/CommandStubs.pl | 2 +- blootbot/src/Modules/botmail.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blootbot/src/CommandStubs.pl b/blootbot/src/CommandStubs.pl index 9c1fa7e..54035db 100644 --- a/blootbot/src/CommandStubs.pl +++ b/blootbot/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/blootbot/src/Modules/botmail.pl b/blootbot/src/Modules/botmail.pl index 3bfebfd..11c98d1 100644 --- a/blootbot/src/Modules/botmail.pl +++ b/blootbot/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.5