From 81f98edf06d6e94944210d9cf358d6269a1cdd54 Mon Sep 17 00:00:00 2001 From: Dmitry Cherkassov Date: Wed, 17 Dec 2014 11:15:36 +0000 Subject: [PATCH] Fix on_group_invite --- tox-irc-sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox-irc-sync.py b/tox-irc-sync.py index adca74f..ffc771a 100644 --- a/tox-irc-sync.py +++ b/tox-irc-sync.py @@ -71,7 +71,7 @@ class SyncBot(Tox): self.av = AV(self, 10) self.connect() - self.set_name('SyncBot') + self.set_name('bnwox-sync') self.set_status_message("Send me a message with the word 'invite'") print('ID: %s' % self.get_address()) @@ -188,10 +188,10 @@ class SyncBot(Tox): self.request = True self.ensure_exe(self.send_message, (self.bid, 'invite')) - def on_group_invite(self, friendid, pk): + def on_group_invite(self, friendid, type, data): if not self.joined: self.joined = True - self.tox_group_id = self.join_groupchat(friendid, pk) + self.tox_group_id = self.join_groupchat(friendid, data) print('Joined groupchat.') def on_group_message(self, groupnumber, friendgroupnumber, message):