Allow passing through message with ^ as prefix
This commit is contained in:
parent
9bbccdc470
commit
d82c18ffda
1 changed files with 5 additions and 1 deletions
|
@ -150,7 +150,11 @@ class SyncBot(Tox):
|
|||
if message.startswith('>'):
|
||||
message = ('\x039%s\x03' % message)
|
||||
print('TOX> %s: %s' % (name, 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))
|
||||
else:
|
||||
self.irc_send('PRIVMSG %s :[%s]: %s\r\n' %
|
||||
(CHANNEL, name, message))
|
||||
|
||||
def on_group_action(self, groupnumber, friendgroupnumber, action):
|
||||
if action != self.sent:
|
||||
|
|
Loading…
Reference in a new issue