Remove pass through mode.
This commit is contained in:
parent
93a1f5ae7d
commit
c5de892685
1 changed files with 3 additions and 4 deletions
|
@ -153,12 +153,11 @@ class SyncBot(Tox):
|
||||||
print('TOX> %s: %s' % (name, message))
|
print('TOX> %s: %s' % (name, message))
|
||||||
if message.startswith('>'):
|
if message.startswith('>'):
|
||||||
message = '\x0309%s\x03' % message
|
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' %
|
self.irc_send('PRIVMSG %s :[%s]: %s\r\n' %
|
||||||
(CHANNEL, name, message))
|
(CHANNEL, name, message))
|
||||||
|
if message.startswith('^'):
|
||||||
|
self.handle_command(message)
|
||||||
|
|
||||||
def on_group_action(self, groupnumber, friendgroupnumber, action):
|
def on_group_action(self, groupnumber, friendgroupnumber, action):
|
||||||
name = self.group_peername(groupnumber, friendgroupnumber)
|
name = self.group_peername(groupnumber, friendgroupnumber)
|
||||||
|
|
Loading…
Reference in a new issue