Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 5012:d59c842fe38e | 5013:ab693eea0869 |
|---|---|
| 23 local cert_verify_identity = require "util.x509".verify_identity; | 23 local cert_verify_identity = require "util.x509".verify_identity; |
| 24 | 24 |
| 25 local commands = module:shared("commands") | 25 local commands = module:shared("commands") |
| 26 local def_env = module:shared("env"); | 26 local def_env = module:shared("env"); |
| 27 local default_env_mt = { __index = def_env }; | 27 local default_env_mt = { __index = def_env }; |
| 28 local core_post_stanza = prosody.core_post_stanza; | |
| 28 | 29 |
| 29 local function redirect_output(_G, session) | 30 local function redirect_output(_G, session) |
| 30 local env = setmetatable({ print = session.print }, { __index = function (t, k) return rawget(_G, k); end }); | 31 local env = setmetatable({ print = session.print }, { __index = function (t, k) return rawget(_G, k); end }); |
| 31 env.dofile = function(name) | 32 env.dofile = function(name) |
| 32 local f, err = loadfile(name); | 33 local f, err = loadfile(name); |