Remove pass through mode.

This commit is contained in:
AZ Huang 2014-03-14 03:31:26 +08:00
parent 93a1f5ae7d
commit c5de892685

View file

@ -153,12 +153,11 @@ class SyncBot(Tox):
print('TOX> %s: %s' % (name, message))
if message.startswith('>'):
message = '\x0309%s\x03' % 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))
if message.startswith('^'):
self.handle_command(message)
def on_group_action(self, groupnumber, friendgroupnumber, action):
name = self.group_peername(groupnumber, friendgroupnumber)