Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 6176:02d366be7c2f
mod_admin_telnet: Remove dead code
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 12 May 2014 01:16:17 +0200 |
parent | 6175:50ddaec11f2a |
child | 6260:6986ca575568 |
comparison
equal
deleted
inserted
replaced
6175:50ddaec11f2a | 6176:02d366be7c2f |
---|---|
479 function def_env.config:reload() | 479 function def_env.config:reload() |
480 local ok, err = prosody.reload_config(); | 480 local ok, err = prosody.reload_config(); |
481 return ok, (ok and "Config reloaded (you may need to reload modules to take effect)") or tostring(err); | 481 return ok, (ok and "Config reloaded (you may need to reload modules to take effect)") or tostring(err); |
482 end | 482 end |
483 | 483 |
484 def_env.hosts = {}; | |
485 function def_env.hosts:list() | |
486 for host, host_session in pairs(hosts) do | |
487 self.session.print(host); | |
488 end | |
489 return true, "Done"; | |
490 end | |
491 | |
492 function def_env.hosts:add(name) | |
493 end | |
494 | |
495 local function common_info(session, line) | 484 local function common_info(session, line) |
496 if session.id then | 485 if session.id then |
497 line[#line+1] = "["..session.id.."]" | 486 line[#line+1] = "["..session.id.."]" |
498 else | 487 else |
499 line[#line+1] = "["..session.type..(tostring(session):match("%x*$")).."]" | 488 line[#line+1] = "["..session.type..(tostring(session):match("%x*$")).."]" |