# HG changeset patch # User Mikael Berthe # Date 1343752302 -7200 # Node ID 7265595dbc3b95f5a4e98e83ae606a8f94705a3d # Parent dc4eb8fe8b94db3b84253c2a85bbc883bf67358d Cosmetics diff -r dc4eb8fe8b94 -r 7265595dbc3b mod_admin_messageconsole.lua --- a/mod_admin_messageconsole.lua Tue Jul 31 18:17:40 2012 +0200 +++ b/mod_admin_messageconsole.lua Tue Jul 31 18:31:42 2012 +0200 @@ -10,12 +10,12 @@ -- COPYING file in the source package for more information. -- -local st = require "util.stanza"; -- Import Prosody's stanza API into 'st' +local st = require "util.stanza"; local um_is_admin = require "core.usermanager".is_admin; local admin_telnet = module:depends("admin_telnet"); local telnet_def_env = module:shared("/*/admin_telnet/env"); -local telnet_commands = module:shared("/*/admin_telnet/commands") +local telnet_commands = module:shared("/*/admin_telnet/commands"); local default_env_mt = { __index = telnet_def_env }; local host = module.host; @@ -40,7 +40,7 @@ else session.fulltext = text; end - end; + end session.env = setmetatable({}, default_env_mt);