diff irclib.py @ 89:94fc538cdf65

Better format stripping for IRC messages Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Tue, 15 Sep 2009 21:38:00 +0200
parents 500d47b1d8cd
children 0ae0f8836a7a
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -90,7 +90,7 @@ DEBUG = 0
 # ERROR from the server triggers the error event and the disconnect event.
 # dropping of the connection triggers the disconnect event.
 
-strip_formatting_re = re.compile('(?:\x03[0-9]*(?:,[0-9]+)?|\x02)')
+strip_formatting_re = re.compile('(?:\x03[0-9]*(?:,[0-9]+)?|\x02|\x1f)')
 
 class IRCError(Exception):
     """Represents an IRC exception."""