From c5de892685140c60397a4cd57ee9c9042983936e Mon Sep 17 00:00:00 2001 From: AZ Huang Date: Fri, 14 Mar 2014 03:31:26 +0800 Subject: [PATCH] Remove pass through mode. --- tox-irc-sync.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tox-irc-sync.py b/tox-irc-sync.py index a4f9687..be5f7c6 100644 --- a/tox-irc-sync.py +++ b/tox-irc-sync.py @@ -153,12 +153,11 @@ class SyncBot(Tox): print('TOX> %s: %s' % (name, message)) if message.startswith('>'): message = '\x0309%s\x03' % message + + self.irc_send('PRIVMSG %s :[%s]: %s\r\n' % + (CHANNEL, name, message)) if message.startswith('^'): - self.irc_send('PRIVMSG %s :%s\r\n' % (CHANNEL, message)) self.handle_command(message) - else: - self.irc_send('PRIVMSG %s :[%s]: %s\r\n' % - (CHANNEL, name, message)) def on_group_action(self, groupnumber, friendgroupnumber, action): name = self.group_peername(groupnumber, friendgroupnumber)