Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 6770:cb84731b2dfd
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 27 Jul 2015 09:38:40 +0100 |
parent | 6769:4caef6d53304 |
parent | 6768:7816923fd5bf |
child | 6800:ad231285efdd |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Mon Jul 27 18:34:51 2015 +1000 +++ b/plugins/muc/mod_muc.lua Mon Jul 27 09:38:40 2015 +0100 @@ -87,9 +87,9 @@ end local _set_affiliation = room_mt.set_affiliation; - function room_mt:set_affiliation(actor, jid, ...) + function room_mt:set_affiliation(actor, jid, affiliation, reason) if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end - return _set_affiliation(self, actor, jid, ...); + return _set_affiliation(self, actor, jid, affiliation, reason); end end