diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-09-03 12:18:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-09-03 12:18:13 +0100 |
commit | 293efa61df6d85670ea8eb62933d2416f2ee4f6b (patch) | |
tree | 74c9aa8c124ebe2a9e980e84a46de4d3e89dc274 /plugins/muc/mod_muc.lua | |
parent | 418bf0b73fd9d628b907ed339f6146394ed67d25 (diff) | |
download | prosody-293efa61df6d85670ea8eb62933d2416f2ee4f6b.tar.gz prosody-293efa61df6d85670ea8eb62933d2416f2ee4f6b.zip |
MUC: Add support for storing additional data with MUC affiliations
XEP-0045 registration provides examples of registering a nickname
and various other details. This also allows modules to store arbitrary
private data about an affiliated entity.
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index b8e7b3a2..f0cd185e 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -107,9 +107,9 @@ do -- Monkey patch to make server admins room owners end local _set_affiliation = room_mt.set_affiliation; - function room_mt:set_affiliation(actor, jid, affiliation, reason) + function room_mt:set_affiliation(actor, jid, affiliation, reason, data) if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end - return _set_affiliation(self, actor, jid, affiliation, reason); + return _set_affiliation(self, actor, jid, affiliation, reason, data); end end |