X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FCommandStubs.pl;h=1a55669aef5b19ad323f1480aa82a45997506e3f;hb=c68ac9b2d4b88535c1a2cfa695f6c4f683f0373c;hp=e1cd9504c3d2505124b9cffab39b05cf4dc6d152;hpb=3d90aae6dc5fadecb17f85531b1222472a8f520a;p=infobot.git diff --git a/src/CommandStubs.pl b/src/CommandStubs.pl index e1cd950..1a55669 100644 --- a/src/CommandStubs.pl +++ b/src/CommandStubs.pl @@ -280,6 +280,11 @@ sub Modules { $itc =~ s/([^\w\s])/\\$1/g; my $z = join '|', split ' ', $itc; + if ($msgType eq "privmsg" and $message =~ / ($mask{chan})$/) { + &DEBUG("ircTC: privmsg detected; chan = $1"); + $chan = $1; + } + if ($message =~ /^_stats(\s+(\S+))$/i) { &textstats_main($2); return;