]> git.donarmstrong.com Git - infobot.git/commitdiff
some botmail aliases
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 18 Dec 2002 00:57:24 +0000 (00:57 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 18 Dec 2002 00:57:24 +0000 (00:57 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@750 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl
src/Modules/botmail.pl

index 9c1fa7ea047394d9f636b52dc2f7992b4bde0e75..54035dbdfc70a123887b43ac66de83a752ec822b 100644 (file)
@@ -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') );
 
 ###
index 3bfebfdaf2a1b287e95d7a8460c1cd57655a2425..11c98d166c26a6d08a8e19ff4e79df05a4b70a36 100644 (file)
@@ -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) {