aboutsummaryrefslogtreecommitdiffstats
path: root/local/utility.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-05-02 00:00:16 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-05-02 00:00:16 +0300
commit4e9e59bf171e40c37099504ab9ee3455d8ff9f42 (patch)
treeaf0243193b849d4a75960b9ff28e75579e4b0e3b /local/utility.py
parent8894d5cea2d21c39b90475957fbbc6937794964d (diff)
downloadsupybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.tar.gz
supybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.tar.bz2
supybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.zip
Fix the build
Diffstat (limited to 'local/utility.py')
-rw-r--r--local/utility.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/local/utility.py b/local/utility.py
index 16e36a1..5aa8724 100644
--- a/local/utility.py
+++ b/local/utility.py
@@ -74,7 +74,7 @@ def saveMessages(msgs):
def clean(string):
"""Strips IRC control characters from a string"""
- regex = re.compile("((\x02)|(\x03))(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE)
+ regex = re.compile("(([\x02\x1f\x16\x0f])|(\x03(?:\d{1,2}(?:,\d{1,2})?)?))", re.UNICODE)
return regex.sub('', string)
# Possible colours:

© 2014-2024 Faster IT GmbH | imprint | privacy policy