diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-14 14:11:31 +0200 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2023-07-29 13:52:11 +0200 |
commit | d0fca291ac319173268683bf316e1d708db930ee (patch) | |
tree | d36c64fd12135b9ed61b95a728a8755e2d147701 | |
parent | 8c8c2dc4b0e08a2e6d73b45fba795d462595418f (diff) | |
download | dino-d0fca291ac319173268683bf316e1d708db930ee.tar.gz dino-d0fca291ac319173268683bf316e1d708db930ee.zip |
Fix showing the kick option to owners
Missing case in the switch defaulted to returning false for Owners, thus
preventing they with the most privileges from using those privileges.
-rw-r--r-- | xmpp-vala/src/module/xep/0045_muc/module.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index f8ddb6d0..46abe303 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -203,6 +203,8 @@ public class Module : XmppStreamModule { case Affiliation.ADMIN: if (other_affiliation == Affiliation.OWNER) return false; break; + case Affiliation.OWNER: + return true; default: return false; } |