]> git.donarmstrong.com Git - infobot.git/commitdiff
allow nick[:]
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 9 Dec 2002 20:09:36 +0000 (20:09 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 9 Dec 2002 20:09:36 +0000 (20:09 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@748 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/Modules/botmail.pl

index fcb5e8a695716dc0afb9c9c99d8708dc4c3f003b..3bfebfdaf2a1b287e95d7a8460c1cd57655a2425 100644 (file)
@@ -85,6 +85,9 @@ sub add {
     my($recipient, $msg) = @_;
     &::DEBUG("botmail::add(@_)");
 
+    # allow optional trailing : ie: botmail for foo[:] hello
+    $recipient =~ s/:$//;
+
     # only support 1 botmail with unique dstwho/srcwho to have same
     # functionality as botmail from infobot.
     my %hash = &::sqlSelectRowHash("botmail", "*", {