Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 5013:ab693eea0869
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 26 Jul 2012 04:33:17 +0200 |
parent | 5011:83b4d3727b4f |
child | 5024:d25e1b9332cc |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Thu Jul 26 04:30:30 2012 +0200 +++ b/plugins/mod_admin_telnet.lua Thu Jul 26 04:33:17 2012 +0200 @@ -25,6 +25,7 @@ local commands = module:shared("commands") local def_env = module:shared("env"); local default_env_mt = { __index = def_env }; +local core_post_stanza = prosody.core_post_stanza; local function redirect_output(_G, session) local env = setmetatable({ print = session.print }, { __index = function (t, k) return rawget(_G, k); end });