# 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 -r bfa32b017fc9 -r 500d47b1d8cd irclib.py --- a/irclib.py Sun Sep 06 15:34:49 2009 +0200 +++ b/irclib.py Mon Sep 07 00:51:43 2009 +0200 @@ -90,7 +90,7 @@ # 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."""