From: timriker Date: Mon, 9 Dec 2002 20:09:36 +0000 (+0000) Subject: allow nick[:] X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=da850dea23959d29fb5c332cb94e714b162e9038;p=infobot.git allow nick[:] git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@748 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Modules/botmail.pl b/src/Modules/botmail.pl index fcb5e8a..3bfebfd 100644 --- a/src/Modules/botmail.pl +++ b/src/Modules/botmail.pl @@ -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", "*", {