# HG changeset patch # User Matthew Wild # Date 1530111654 -3600 # Node ID 200ec7d38a0edc4a2e76d0eeba9d217546ca282c # Parent 3a416b866c94c3a0d66365136ea7000dbf61f64a MUC: Remove affiliation notify support, nothing uses it diff -r 3a416b866c94 -r 200ec7d38a0e plugins/muc/affiliation_notify.lib.lua --- a/plugins/muc/affiliation_notify.lib.lua Wed Jun 27 15:28:45 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ --- Prosody IM --- Copyright (C) 2014 Daurnimator --- --- This project is MIT/X11 licensed. Please see the --- COPYING file in the source package for more information. --- - ---[[ -Out of courtesy, a MUC service MAY send an out-of-room -if a user's affiliation changes while the user is not in the room; -the message SHOULD be sent from the room to the user's bare JID, -MAY contain a element describing the affiliation change, -and MUST contain a status code of 101. -]] - - -local st = require "util.stanza"; - -module:hook("muc-set-affiliation", function(event) - local room = event.room; - if not event.in_room then - local stanza = st.message({ - type = "headline"; - from = room.jid; - to = event.jid; - }) - :tag("x", {xmlns = "http://jabber.org/protocol/muc#user"}) - :tag("status", {code="101"}):up() - :up(); - room:route_stanza(stanza); - end -end); diff -r 3a416b866c94 -r 200ec7d38a0e plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed Jun 27 15:28:45 2018 +0100 +++ b/plugins/muc/mod_muc.lua Wed Jun 27 16:00:54 2018 +0100 @@ -24,8 +24,6 @@ room_mt = muclib.room_mt; -- Yes, global. new_room = muclib.new_room; -local affiliation_notify = module:require "muc/affiliation_notify"; -- luacheck: ignore 211 - local name = module:require "muc/name"; room_mt.get_name = name.get; room_mt.set_name = name.set;