瀏覽代碼

fix: Fixes kick when allowners is enabled.

Broken after ab18fa7 which disallows the kick as the affiliation attribute is missing in kick iq that is sent.
master
Дамян Минков 3 年之前
父節點
當前提交
a5129ef291
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      resources/prosody-plugins/mod_muc_allowners.lua

+ 2
- 2
resources/prosody-plugins/mod_muc_allowners.lua 查看文件

@@ -170,8 +170,8 @@ function filter_admin_set_query(event)
170 170
         return nil;
171 171
     end
172 172
 
173
-    -- any revoking is disabled
174
-    if _aff ~= 'owner' then
173
+    -- any revoking is disabled, everyone should be owners
174
+    if _aff == 'none' or _aff == 'outcast' or _aff == 'member' then
175 175
         origin.send(st.error_reply(stanza, "auth", "forbidden"));
176 176
         return true;
177 177
     end

Loading…
取消
儲存