Browse Source

fix: Drops extra message sent on leave.

j8
damencho 4 years ago
parent
commit
1f41ddd228
1 changed files with 0 additions and 10 deletions
  1. 0
    10
      resources/prosody-plugins/mod_muc_allowners.lua

+ 0
- 10
resources/prosody-plugins/mod_muc_allowners.lua View File

@@ -97,16 +97,6 @@ module:hook("muc-occupant-joined", function (event)
97 97
     end
98 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 100
 module:hook_global('config-reloaded', load_config);
111 101
 
112 102
 -- Filters self-presences to a jid that exist in joining_participants array

Loading…
Cancel
Save