# HG changeset patch # User Charly COSTE # Date 1252277503 -7200 # Node ID 500d47b1d8cdbd967ab252b0f8a163fe7eba8d5d # Parent bfa32b017fc9e6dc80f0b165455d10423ed0a479 Better color 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]*|\x02)') +strip_formatting_re = re.compile('(?:\x03[0-9]*(?:,[0-9]+)?|\x02)') class IRCError(Exception): """Represents an IRC exception."""