summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/tabs/muctab.py4
1 files changed, 3 insertions, 1 deletions
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
)