mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
authorKim Alvefur <zash@zash.se>
Thu, 15 Mar 2012 14:47:46 +0100
changeset 4623 403b56b78018
parent 4622 9eccb5a27989
child 4624 3e4715d44561
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
plugins/mod_admin_telnet.lua
plugins/mod_bosh.lua
plugins/mod_posix.lua
--- a/plugins/mod_admin_telnet.lua	Thu Mar 15 03:19:35 2012 +0000
+++ b/plugins/mod_admin_telnet.lua	Thu Mar 15 14:47:46 2012 +0100
@@ -6,7 +6,7 @@
 -- COPYING file in the source package for more information.
 --
 
-module.host = "*";
+module:set_global();
 
 local _G = _G;
 
--- a/plugins/mod_bosh.lua	Thu Mar 15 03:19:35 2012 +0000
+++ b/plugins/mod_bosh.lua	Thu Mar 15 14:47:46 2012 +0100
@@ -6,7 +6,7 @@
 -- COPYING file in the source package for more information.
 --
 
-module.host = "*" -- Global module
+module:set_global(); -- Global module
 
 local hosts = _G.hosts;
 local new_xmpp_stream = require "util.xmppstream".new;
--- a/plugins/mod_posix.lua	Thu Mar 15 03:19:35 2012 +0000
+++ b/plugins/mod_posix.lua	Thu Mar 15 14:47:46 2012 +0100
@@ -22,7 +22,7 @@
 
 local prosody = _G.prosody;
 
-module.host = "*"; -- we're a global module
+module:set_global(); -- we're a global module
 
 local umask = module:get_option("umask") or "027";
 pposix.umask(umask);