From db3f3ea3086cb48d0f1a5b940d7ee182f6839513 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Mon, 17 Sep 2012 14:23:18 -0500 Subject: Strip ASCII color codes from messages. Fixes #18 --- logbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/logbot.py b/logbot.py index c8411d2..73a3200 100755 --- a/logbot.py +++ b/logbot.py @@ -211,6 +211,7 @@ class Logbot(SingleServerIRCBot): else: chans = event.target() msg = self.format_event(name, event, params) + msg = re.sub(r'\[(\d{1,2})m', '', msg) msg = urlify2(msg) # In case there are still events that don't supply a channel name (like /quit and /nick did) -- cgit v1.2.3-70-g09d2