From 93a1f5ae7dcceb100ad111d2dad2fe953cfc0aca Mon Sep 17 00:00:00 2001 From: AZ Huang Date: Thu, 20 Feb 2014 18:34:59 +0000 Subject: [PATCH] Fix color bug. --- tox-irc-sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox-irc-sync.py b/tox-irc-sync.py index d0e7079..a4f9687 100644 --- a/tox-irc-sync.py +++ b/tox-irc-sync.py @@ -152,7 +152,7 @@ class SyncBot(Tox): if name != NAME: print('TOX> %s: %s' % (name, message)) if message.startswith('>'): - message = '\x0309%s\03' % message + message = '\x0309%s\x03' % message if message.startswith('^'): self.irc_send('PRIVMSG %s :%s\r\n' % (CHANNEL, message)) self.handle_command(message) @@ -165,7 +165,7 @@ class SyncBot(Tox): if name != NAME: print('TOX> %s: %s' % (name, action)) if action.startswith('>'): - action = '\x0309%s\03' % action + action = '\x0309%s\x03' % action self.irc_send('PRIVMSG %s :\x01ACTION [%s]: %s\x01\r\n' % (CHANNEL, name, action))