Comparison

plugins/mod_bosh.lua @ 4623:403b56b78018

mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
author Kim Alvefur <zash@zash.se>
date Thu, 15 Mar 2012 14:47:46 +0100
parent 4457:332a5d73e5b6
child 4684:dc70c4ffb66d
comparison
equal deleted inserted replaced
4622:9eccb5a27989 4623:403b56b78018
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 module.host = "*" -- Global module 9 module:set_global(); -- Global module
10 10
11 local hosts = _G.hosts; 11 local hosts = _G.hosts;
12 local new_xmpp_stream = require "util.xmppstream".new; 12 local new_xmpp_stream = require "util.xmppstream".new;
13 local httpserver = require "net.httpserver"; 13 local httpserver = require "net.httpserver";
14 local sm = require "core.sessionmanager"; 14 local sm = require "core.sessionmanager";