Fix !megakick broken after the slixmpp switch

This commit is contained in:
Alexei Sorokin 2017-06-03 14:41:35 +03:00
parent bea576efb3
commit 91e05364f6
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Hptoad:
if is_admin and victim != self.bot_nick:
if is_bot_admin and not is_victim_admin and \
victim in self.muc_obj.rooms[self.muc]:
self.muc_obj.setRole(self.muc, victim, "none")
self.muc_obj.set_role(self.muc, victim, "none")
else:
reply = "%s: Can't megakick %s." % (nick, victim)
else: