aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-01-18 18:28:50 +0100
committerKim Alvefur <zash@zash.se>2014-01-18 18:28:50 +0100
commit4d6d0891f6c4286aa4e9847d2869f725a70773ee (patch)
tree86d6e5699320f133aaf3dcbae3c09694632f2e2e /plugins
parent5de535c834c2b641697751743b358064ffe1e99f (diff)
downloadprosody-4d6d0891f6c4286aa4e9847d2869f725a70773ee.tar.gz
prosody-4d6d0891f6c4286aa4e9847d2869f725a70773ee.zip
MUC: Expose room metatable on module
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 042d3891..7bb1d8b2 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -52,8 +52,9 @@ local function is_admin(jid)
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);