aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-28 16:31:21 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-28 16:31:21 -0400
commitc34f4b0ae3b32f17ad4ccffbf6356d593e4128d2 (patch)
treea74c806ec9c6534094482a9f35e9d134d1051031 /plugins
parentc2b74c312945d2afbaaf75a1ba6e24dc4bb0fe02 (diff)
downloadprosody-c34f4b0ae3b32f17ad4ccffbf6356d593e4128d2.tar.gz
prosody-c34f4b0ae3b32f17ad4ccffbf6356d593e4128d2.zip
plugins/muc/mod_muc: No need to treat the host room specially
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 8a7ae9c7..ecc136f1 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -12,7 +12,6 @@ if module:get_host_type() ~= "component" then
error("MUC should be loaded as a component, please see http://prosody.im/doc/components", 0);
end
-local muc_host = module:get_host();
local restrict_room_creation = module:get_option("restrict_room_creation");
if restrict_room_creation then
if restrict_room_creation == true then
@@ -120,10 +119,6 @@ for jid in pairs(persistent_rooms) do
end
if persistent_errors then persistent_rooms_storage:set(nil, persistent_rooms); end
-local host_room = muc_new_room(muc_host);
-host_room.save = room_save;
-rooms[muc_host] = host_room;
-
module:hook("host-disco-items", function(event)
local reply = event.reply;
module:log("debug", "host-disco-items called");
@@ -227,7 +222,6 @@ function shutdown_component()
for roomjid, room in pairs(rooms) do
room:clear(x);
end
- host_room:clear(x);
end
end
module.unload = shutdown_component;