浏览代码

fix: Drops extra message sent on leave.

master
damencho 4 年前
父节点
当前提交
1f41ddd228
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0
    10
      resources/prosody-plugins/mod_muc_allowners.lua

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

97
     end
97
     end
98
 end, 2);
98
 end, 2);
99
 
99
 
100
-module:hook("muc-occupant-left", function (event)
101
-    local room, occupant = event.room, event.occupant;
102
-
103
-    if is_healthcheck_room(room.jid) then
104
-        return;
105
-    end
106
-
107
-    room:set_affiliation(true, occupant.bare_jid, nil);
108
-end, 2);
109
-
110
 module:hook_global('config-reloaded', load_config);
100
 module:hook_global('config-reloaded', load_config);
111
 
101
 
112
 -- Filters self-presences to a jid that exist in joining_participants array
102
 -- Filters self-presences to a jid that exist in joining_participants array

正在加载...
取消
保存