From 08c9bfe5b2fdbf615601a2a622b5d48983814289 Mon Sep 17 00:00:00 2001 From: AZ Huang Date: Thu, 20 Feb 2014 19:04:54 +0800 Subject: [PATCH] Fix bug. --- tox-irc-sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox-irc-sync.py b/tox-irc-sync.py index 3a4c270..a295530 100644 --- a/tox-irc-sync.py +++ b/tox-irc-sync.py @@ -148,7 +148,7 @@ class SyncBot(Tox): print('TOX> %s: %s' % (name, message)) if message.startswith('^'): self.irc_send('PRIVMSG %s :%s\r\n' % (CHANNEL, message)) - self.handle_command(cmd) + self.handle_command(message) else: self.irc_send('PRIVMSG %s :[%s]: %s\r\n' % (CHANNEL, name, message)) @@ -176,6 +176,7 @@ class SyncBot(Tox): if cmd[1:] in ['syncbot', 'echobot']: self.ensure_exe(self.group_message_send, (self.tox_group_id, self.get_address())) + self.sent = self.get_address() self.irc_send('PRIVMSG %s :%s\r\n' % (CHANNEL, self.get_address()))