From 0a92cbb3721bb24932c38cb261afcbf4e01f6362 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 27 Jun 2018 16:00:54 +0100 Subject: MUC: Remove affiliation notify support, nothing uses it --- plugins/muc/affiliation_notify.lib.lua | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 plugins/muc/affiliation_notify.lib.lua (limited to 'plugins/muc/affiliation_notify.lib.lua') diff --git a/plugins/muc/affiliation_notify.lib.lua b/plugins/muc/affiliation_notify.lib.lua deleted file mode 100644 index 21226254..00000000 --- a/plugins/muc/affiliation_notify.lib.lua +++ /dev/null @@ -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); -- cgit v1.2.3