From 91e05364f62805288581fcc47a88c254602bad4f Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 3 Jun 2017 14:41:35 +0300 Subject: [PATCH] Fix !megakick broken after the slixmpp switch --- hptoad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hptoad.py b/hptoad.py index 5a15e4b..072a277 100755 --- a/hptoad.py +++ b/hptoad.py @@ -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: