aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-20 05:27:59 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-20 05:27:59 +0100
commitb95a1a48f4abb2a14dbbd55d5bfbdd0350f31e1c (patch)
tree9ad645d8572f848cfbd04285c4e6d48f4b78418b /plugins
parent2890b45f8471a8a86e1e6094044affaf4ec6a19d (diff)
downloadprosody-b95a1a48f4abb2a14dbbd55d5bfbdd0350f31e1c.tar.gz
prosody-b95a1a48f4abb2a14dbbd55d5bfbdd0350f31e1c.zip
mod_muc: Expose rooms table to the host and plugins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_muc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua
index e99ef83c..b38468ea 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -76,6 +76,8 @@ component = register_component(muc_host, function(origin, stanza)
handle_to_domain(origin, stanza);
end);
+prosody.hosts[module:get_host()].muc = { rooms = rooms };
+
module.unload = function()
deregister_component(muc_host);
end
@@ -84,4 +86,5 @@ module.save = function()
end
module.restore = function(data)
rooms = data.rooms or {};
+ prosody.hosts[module:get_host()].muc = { rooms = rooms };
end