X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmod_admin_adhoc.lua;h=392e715e3b8954fd80a22e119811ae9ec56a29a7;hb=3c561ed7ab90acb90ea8cec61d912586b91fe56b;hp=fdbdf46290a4c764c9c145babe1856e99ee5de6c;hpb=b814906935e8f6cc1a2a6fdea4e5e725cec57ead;p=prosody.git 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