Diff

plugins/muc/mod_muc.lua @ 6741:bea3862b6bde

MUC: Remove half of monkeypatch that was supposed to make admins always be room owners, fixes #458
author Kim Alvefur <zash@zash.se>
date Tue, 16 Jun 2015 15:13:47 +0200
parent 5997:2d652afa57e4
child 6742:6efeb801d62f
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Thu May 14 00:22:13 2015 +0200
+++ b/plugins/muc/mod_muc.lua	Tue Jun 16 15:13:47 2015 +0200
@@ -44,16 +44,11 @@
 	return um_is_admin(jid, module.host);
 end
 
-local _set_affiliation = muc_new_room.room_mt.set_affiliation;
 local _get_affiliation = muc_new_room.room_mt.get_affiliation;
 function muclib.room_mt:get_affiliation(jid)
 	if is_admin(jid) then return "owner"; end
 	return _get_affiliation(self, jid);
 end
-function muclib.room_mt:set_affiliation(actor, jid, affiliation, callback, reason)
-	if is_admin(jid) then return nil, "modify", "not-acceptable"; end
-	return _set_affiliation(self, actor, jid, affiliation, callback, reason);
-end
 
 local function room_route_stanza(room, stanza) module:send(stanza); end
 local function room_save(room, forced)