diff options
author | kongr45gpen <electrovesta@gmail.com> | 2014-05-02 00:00:16 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2014-05-02 00:00:16 +0300 |
commit | 4e9e59bf171e40c37099504ab9ee3455d8ff9f42 (patch) | |
tree | af0243193b849d4a75960b9ff28e75579e4b0e3b /local | |
parent | 8894d5cea2d21c39b90475957fbbc6937794964d (diff) | |
download | supybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.tar.gz supybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.tar.bz2 supybot_github-4e9e59bf171e40c37099504ab9ee3455d8ff9f42.zip |
Fix the build
Diffstat (limited to 'local')
-rw-r--r-- | local/handler/WikiHandler.py | 4 | ||||
-rw-r--r-- | local/utility.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/local/handler/WikiHandler.py b/local/handler/WikiHandler.py index 8ea3b70..1f93718 100644 --- a/local/handler/WikiHandler.py +++ b/local/handler/WikiHandler.py @@ -8,13 +8,13 @@ def handle(data): url = getShortURL("%s/wiki/_compare/%s" % ( data['repository']['html_url'], data['pages'][0]['sha'] )) if configValue("hidePush",None) is False: - msgs.append( ircmsgs.privmsg(channel, "%s: %s modified %s wiki %s (%s):" % ( + msgs.append( "%s: %s modified %s wiki %s (%s):" % ( ircutils.bold(data['repository']['name']), ircutils.mircColor(data['sender']['login'], "green"), ircutils.bold(str(pageno)), plural(pageno, "page", "pages"), url - )) ) + )) urlShown = False; 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: |