diff options
author | Kim Alvefur <zash@zash.se> | 2015-09-18 16:16:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-09-18 16:16:10 +0200 |
commit | 27ded264411da3caa885ef86a07f72da8376a438 (patch) | |
tree | 298138d589426668edeb89589c0c0581edc5050c /plugins/mod_admin_telnet.lua | |
parent | b98b1d68bc819180c4d1597ec55edf3fde7e3bc0 (diff) | |
download | prosody-27ded264411da3caa885ef86a07f72da8376a438.tar.gz prosody-27ded264411da3caa885ef86a07f72da8376a438.zip |
mod_admin_telnet: Fix indentation
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 312b3e8c..6a5f87d4 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -830,19 +830,19 @@ function def_env.s2s:close(from, to) (session.close or s2smanager.destroy_session)(session); count = count + 1 ; end - end + end return true, "Closed "..count.." s2s session"..((count == 1 and "") or "s"); end function def_env.s2s:closeall(host) - local count = 0; + local count = 0; local s2s_sessions = module:shared"/*/s2s/sessions"; for _,session in pairs(s2s_sessions) do if not host or session.from_host == host or session.to_host == host then session:close(); - count = count + 1; - end - end + count = count + 1; + end + end if count == 0 then return false, "No sessions to close."; else return true, "Closed "..count.." s2s session"..((count == 1 and "") or "s"); end end |