Fix a traceback in the kick/ban handler

This commit is contained in:
mathieui 2016-09-13 19:40:29 +02:00
parent e4356dc2ae
commit 2886d10ea9

View file

@ -1192,13 +1192,13 @@ class MucTab(ChatTab):
elif ban:
self.core.events.trigger('muc_ban', presence, self)
self.core.on_user_left_private_conversation(from_room,
from_nick, status)
user, status)
self.on_user_banned(presence, user, from_nick)
# kick
elif kick:
self.core.events.trigger('muc_kick', presence, self)
self.core.on_user_left_private_conversation(from_room,
from_nick, status)
user, status)
self.on_user_kicked(presence, user, from_nick)
elif shutdown:
self.core.events.trigger('muc_shutdown', presence, self)