diff options
author | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 08:58:55 +0200 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2015-01-02 08:58:55 +0200 |
commit | fb1c05d783f62d2ca3a3bb71691877c2bfe2994d (patch) | |
tree | 01f77170cb8fc437931682c7dac18d7f6c98be60 /local/utility.py | |
parent | eab2b6253a4a3a3b03bb5107d0e630ec0678ea5e (diff) | |
download | supybot_github-fb1c05d783f62d2ca3a3bb71691877c2bfe2994d.tar.gz supybot_github-fb1c05d783f62d2ca3a3bb71691877c2bfe2994d.tar.bz2 supybot_github-fb1c05d783f62d2ca3a3bb71691877c2bfe2994d.zip |
Use the stripFormatting() method provided by supybot's ircutils
Diffstat (limited to 'local/utility.py')
-rw-r--r-- | local/utility.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/local/utility.py b/local/utility.py index 1b7c3e4..20802b8 100644 --- a/local/utility.py +++ b/local/utility.py @@ -91,11 +91,6 @@ def saveMessages(msgs): return globals.messageList = msgs -def clean(string): - """Strips IRC control characters from a string""" - regex = re.compile("(([\x02\x1f\x16\x0f])|(\x03(?:\d{1,2}(?:,\d{1,2})?)?))", re.UNICODE) - return regex.sub('', string) - def isYes(string): """Returns True if the string represents a yes, False, if it represents no, and another string if it represents something else""" |