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 | 0c65168705b947c340c2a37a4a529dadeb44a3a2 (patch) | |
tree | 74c9aa8c124ebe2a9e980e84a46de4d3e89dc274 /plugins/muc/mod_muc.lua | |
parent | fb2fdc660bc596f09c860d3876bf4d4c23344fb6 (diff) | |
download | prosody-0c65168705b947c340c2a37a4a529dadeb44a3a2.tar.gz prosody-0c65168705b947c340c2a37a4a529dadeb44a3a2.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 |