# HG changeset patch # User Kim Alvefur # Date 1451839716 -3600 # Node ID 49e2456bf2cef770f206867d093d28533e8c5cfd # Parent 8fcee33394633baebdfe00730ad2354b2d4599a1 mod_admin_adhoc: Show only connections to/from the host the command was run on diff -r 8fcee3339463 -r 49e2456bf2ce plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Sun Jan 03 17:22:58 2016 +0100 +++ b/plugins/mod_admin_adhoc.lua Sun Jan 03 17:48:36 2016 +0100 @@ -422,7 +422,7 @@ 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