]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/botmail.pl
allow nick[:]
[infobot.git] / 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", "*", {