# HG changeset patch # User Kim Alvefur # Date 1390066130 -3600 # Node ID c68e2b11d69146858747ffc71d30a61a4a2843cc # Parent 930109558aa258b50a1c7178d792e12730821707 MUC: Expose room metatable on module diff -r 930109558aa2 -r c68e2b11d691 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Sat Jan 18 18:11:13 2014 +0100 +++ b/plugins/muc/mod_muc.lua Sat Jan 18 18:28:50 2014 +0100 @@ -52,8 +52,9 @@ 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; +room_mt = muclib.room_mt; -- Yes, global. +local _set_affiliation = room_mt.set_affiliation; +local _get_affiliation = room_mt.get_affiliation; function muclib.room_mt:get_affiliation(jid) if is_admin(jid) then return "owner"; end return _get_affiliation(self, jid);