aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-04 09:09:15 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-04 09:09:15 +0000
commita49b476d83f97960c80fa860b68073bebf5c5d93 (patch)
treedee56adb63417f62c3f2ae5a05fa108f05122f73 /plugins/mod_admin_adhoc.lua
parent8525a177737252f17ef63a09047b9bbac7f61282 (diff)
parentd0bf02ff6639f9cd0cea23848e74361bad19640d (diff)
downloadprosody-a49b476d83f97960c80fa860b68073bebf5c5d93.tar.gz
prosody-a49b476d83f97960c80fa860b68073bebf5c5d93.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index fdbdf462..392e715e 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -390,7 +390,7 @@ local function session_flags(session, line)
flags[#flags+1] = "encrypted";
end
if session.compressed then
- flags[#flags+1] = "compressed)";
+ flags[#flags+1] = "compressed";
end
if session.smacks then
flags[#flags+1] = "sm";
@@ -422,7 +422,7 @@ local function list_s2s_this_handler(self, data, state)
local sess_lines = { r = remotehost,
session_flags(session, { "", direction, remotehost or "?" })};
- if remotehost:match(module_host) or localhost:match(module_host) then
+ if localhost == module_host then
s2s_list[#s2s_list+1] = sess_lines;
end
end