comparison mod_rawdebug/mod_rawdebug.lua @ 1445:ae1d7665cde9

mod_rawdebug: Make global (like mod_admin_telnet)
author Kim Alvefur <zash@zash.se>
date Mon, 23 Jun 2014 20:25:08 +0200
parents 56c394b9e60d
children c5c583fae25d
comparison
equal deleted inserted replaced
1444:56c394b9e60d 1445:ae1d7665cde9
1 module:set_global();
1 2
2 local tostring = tostring; 3 local tostring = tostring;
3 local filters = require "util.filters"; 4 local filters = require "util.filters";
4 5
5 local def_env = module:shared("/*/admin_telnet/env"); 6 local def_env = module:shared("admin_telnet/env");
6 local rawdebug_enabled = module:shared("sessions"); 7 local rawdebug_enabled = module:shared("sessions");
7 local full_sessions = prosody.full_sessions; 8 local full_sessions = prosody.full_sessions;
8 local log = module._log; 9 local log = module._log;
9 10
10 local rawdebug = {}; 11 local rawdebug = {};