diff options
author | mathieui <mathieui@mathieui.net> | 2021-06-25 21:49:32 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-06-25 21:49:32 +0200 |
commit | 975bad7621a0006b446396232a68dbeb4c624e13 (patch) | |
tree | 7e817c611b89cd9e0e68851fa6407e8e47ae3b33 | |
parent | 2b76f72e4d58eb540aa19173a050142f5199ff81 (diff) | |
download | poezio-975bad7621a0006b446396232a68dbeb4c624e13.tar.gz poezio-975bad7621a0006b446396232a68dbeb4c624e13.tar.bz2 poezio-975bad7621a0006b446396232a68dbeb4c624e13.tar.xz poezio-975bad7621a0006b446396232a68dbeb4c624e13.zip |
fix: do not include the nick in affiliation changes
This trips up prosody a bit, and is undefined outside of the member
affiliation.
-rw-r--r-- | poezio/tabs/muctab.py | 4 |
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 ) |