Comparison

plugins/muc/mod_muc.lua @ 6248:4569b8cbd269

plugins/muc/mod_muc: Get rid of room global; use module:shared to get it
author daurnimator <quae@daurnimator.com>
date Mon, 19 May 2014 13:39:45 -0400
parent 6247:851647eb6657
child 6276:9290a2906feb
comparison
equal deleted inserted replaced
6247:851647eb6657 6248:4569b8cbd269
18 local st = require "util.stanza"; 18 local st = require "util.stanza";
19 local um_is_admin = require "core.usermanager".is_admin; 19 local um_is_admin = require "core.usermanager".is_admin;
20 local hosts = prosody.hosts; 20 local hosts = prosody.hosts;
21 21
22 local rooms = module:shared "rooms"; 22 local rooms = module:shared "rooms";
23 _G.rooms = rooms;
24 23
25 module:depends("disco"); 24 module:depends("disco");
26 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); 25 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms"));
27 module:add_feature("http://jabber.org/protocol/muc"); 26 module:add_feature("http://jabber.org/protocol/muc");
28 module:depends "muc_unique" 27 module:depends "muc_unique"