]> git.donarmstrong.com Git - infobot.git/commitdiff
- strip ^chars update.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 29 Jan 2001 15:03:38 +0000 (15:03 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Mon, 29 Jan 2001 15:03:38 +0000 (15:03 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@266 c11ca15a-4712-0410-83d8-924469b57eb5

src/Misc.pl

index d105bf65209d02ab84f8d4134e231e675a4909b6..ddda582e314fbb4a58ad42362fababcc99ab6e27 100644 (file)
@@ -229,8 +229,9 @@ sub fixString {
        s/\s+/ /g;              # remove excessive whitespaces.
 
        next unless (defined $level);
-       &DEBUG("strip control chars?");
-       s/[\cA-\c_]//ig         # remove control characters.
+       if (s/[\cA-\c_]//ig) {          # remove control characters.
+           &DEBUG("stripped control chars");
+       }
     }
 
     return $str;