# HG changeset patch # User Charly COSTE # Date 1253043480 -7200 # Node ID 94fc538cdf65dd650e161aade563d7b7f2e214a3 # Parent 8b071629558e350d2735e8a5b1c01df83e433266 Better format stripping for IRC messages Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- 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."""