aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-06-27 16:00:54 +0100
committerMatthew Wild <mwild1@gmail.com>2018-06-27 16:00:54 +0100
commitaa76e7bfc17e523b57a355b722f25f31f06c24a9 (patch)
treed3633ccae592614fbeb1c78f038c91f0b6685b71 /plugins
parentd4eb45c92e6cb5a987c7b54b29745bed40e06ead (diff)
downloadprosody-aa76e7bfc17e523b57a355b722f25f31f06c24a9.tar.gz
prosody-aa76e7bfc17e523b57a355b722f25f31f06c24a9.zip
MUC: Remove affiliation notify support, nothing uses it
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/affiliation_notify.lib.lua32
-rw-r--r--plugins/muc/mod_muc.lua2
2 files changed, 0 insertions, 34 deletions
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 <message/>
-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 <body/> 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 --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index e4278297..c3975282 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -24,8 +24,6 @@ local muclib = module:require "muc";
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;