Software /
code /
prosody
Changeset
6768:7816923fd5bf
mod_muc: Fix a traceback when an owner joins a room
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 25 Jul 2015 15:49:00 +0100 |
parents | 6767:d01c29b62b16 |
children | 6770:cb84731b2dfd |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Thu Jul 09 00:14:27 2015 +0100 +++ b/plugins/muc/mod_muc.lua Sat Jul 25 15:49:00 2015 +0100 @@ -38,9 +38,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