aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-26 04:45:22 +0200
committerKim Alvefur <zash@zash.se>2012-07-26 04:45:22 +0200
commit3436718fab8e0d94b5e308c8400a42bf7fdbfda2 (patch)
tree0691c86518826e98ab62f10a59fedcf3197dd5c5 /plugins/muc
parenta3f9da1b44df0cfb56699d30497a85c3d4a8aa8f (diff)
downloadprosody-3436718fab8e0d94b5e308c8400a42bf7fdbfda2.tar.gz
prosody-3436718fab8e0d94b5e308c8400a42bf7fdbfda2.zip
mod_muc: Remove unused variable and pull hosts into a local
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index eb4129d3..0fa172ee 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -29,11 +29,11 @@ local st = require "util.stanza";
local uuid_gen = require "util.uuid".generate;
local datamanager = require "util.datamanager";
local um_is_admin = require "core.usermanager".is_admin;
+local hosts = hosts;
rooms = {};
local rooms = rooms;
local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {};
-local component = hosts[module.host];
-- Configurable options
local max_history_messages = module:get_option_number("max_history_messages");
@@ -172,7 +172,7 @@ hosts[module.host].send = function(stanza) -- FIXME do a generic fix
else error("component.send only supports result and error stanzas at the moment"); end
end
-prosody.hosts[module:get_host()].muc = { rooms = rooms };
+hosts[module:get_host()].muc = { rooms = rooms };
module.save = function()
return {rooms = rooms};
@@ -188,5 +188,5 @@ module.restore = function(data)
room.save = room_save;
rooms[jid] = room;
end
- prosody.hosts[module:get_host()].muc = { rooms = rooms };
+ hosts[module:get_host()].muc = { rooms = rooms };
end