projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fc96c0
)
mod_admin_telnet: Remove dead code
author
Kim Alvefur
<zash@zash.se>
Sun, 11 May 2014 23:16:17 +0000
(
01:16
+0200)
committer
Kim Alvefur
<zash@zash.se>
Sun, 11 May 2014 23:16:17 +0000
(
01:16
+0200)
plugins/mod_admin_telnet.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_admin_telnet.lua
b/plugins/mod_admin_telnet.lua
index 6a8783e23fd9bce3b06a99ef909df7ee2ec6754e..9761d2f322ff474831251f06f4b80b07b8459404 100644
(file)
--- a/
plugins/mod_admin_telnet.lua
+++ b/
plugins/mod_admin_telnet.lua
@@
-481,17
+481,6
@@
function def_env.config:reload()
return ok, (ok and "Config reloaded (you may need to reload modules to take effect)") or tostring(err);
end
-def_env.hosts = {};
-function def_env.hosts:list()
- for host, host_session in pairs(hosts) do
- self.session.print(host);
- end
- return true, "Done";
-end
-
-function def_env.hosts:add(name)
-end
-
local function common_info(session, line)
if session.id then
line[#line+1] = "["..session.id.."]"