]> git.donarmstrong.com Git - infobot.git/commitdiff
require explicit * =~ for global replace
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 24 Jan 2006 21:41:01 +0000 (21:41 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 24 Jan 2006 21:41:01 +0000 (21:41 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1267 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/UserDCC.pl

index a534fba8483a736a29ddd817141bef7f2f93ecce..b7f56ebc83b636157545dd175e138b2ee301f829 100644 (file)
@@ -395,7 +395,7 @@ sub userDCC {
     }
 
     # global factoid substitution.
-    if ($message =~ m|^s([/,#])(.+?)\1(.*?)\1;?\s*$|) {
+    if ($message =~ m|^\* =~ s([/,#])(.+?)\1(.*?)\1;?\s*$|) {
        my ($delim,$op,$np) = ($1, $2, $3);
        return unless (&hasFlag("n"));
        ### TODO: support flags to do full-on global.