mod_muc: Fix a traceback when an owner joins a room
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Sat, 25 Jul 2015 15:49:00 +0100
changeset 6771 7816923fd5bf
parent 6770 d01c29b62b16
child 6773 cb84731b2dfd
mod_muc: Fix a traceback when an owner joins a room
plugins/muc/mod_muc.lua
--- 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