From 975bad7621a0006b446396232a68dbeb4c624e13 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 25 Jun 2021 21:49:32 +0200 Subject: [PATCH] fix: do not include the nick in affiliation changes This trips up prosody a bit, and is undefined outside of the member affiliation. --- poezio/tabs/muctab.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py index a61d108e..4e50bbdc 100644 --- a/poezio/tabs/muctab.py +++ b/poezio/tabs/muctab.py @@ -272,10 +272,12 @@ class MucTab(ChatTab): return try: + if affiliation != 'member': + nick = None await self.core.xmpp['xep_0045'].set_affiliation( self.jid.bare, - nick=nick, jid=jid, + nick=nick, affiliation=affiliation, reason=reason )