From da850dea23959d29fb5c332cb94e714b162e9038 Mon Sep 17 00:00:00 2001 From: timriker Date: Mon, 9 Dec 2002 20:09:36 +0000 Subject: [PATCH] allow nick[:] git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@748 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/botmail.pl | 3 +++ 1 file changed, 3 insertions(+) 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", "*", { -- 2.39.5