]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CommandStubs.pl
- Manually applied patch from Morten Brix Pedersen. Thanks.
[infobot.git] / src / CommandStubs.pl
index e1cd9504c3d2505124b9cffab39b05cf4dc6d152..7f0681408a8ec6e931751aa53216e7f4f9d22cb9 100644 (file)
@@ -3,7 +3,7 @@
 # WARN: this file does not reload on HUP.
 #
 
-if (&IsParam("useStrict")) { use strict; }
+#use strict;
 
 $babel_lang_regex = "fr|sp|po|pt|it|ge|de|gr|en";
 
@@ -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;