mod_console: Add a space before '(encrypted)' in s2s:show()

Tue, 06 Oct 2009 10:42:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 06 Oct 2009 10:42:53 +0100
changeset 1927
c3384860e23f
parent 1926
e1c5b537f240
child 1928
d11f07ca0b75

mod_console: Add a space before '(encrypted)' in s2s:show()

plugins/mod_console.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_console.lua	Tue Oct 06 10:34:13 2009 +0100
+++ b/plugins/mod_console.lua	Tue Oct 06 10:42:53 2009 +0100
@@ -467,7 +467,7 @@
 		for remotehost, session in pairs(host_session.s2sout) do
 			if (not match_jid) or remotehost:match(match_jid) or host:match(match_jid) then
 				count_out = count_out + 1;
-				print("    "..host.." -> "..remotehost..(session.secure and "(encrypted)" or ""));
+				print("    "..host.." -> "..remotehost..(session.secure and " (encrypted)" or ""));
 				if session.sendq then
 					print("        There are "..#session.sendq.." queued outgoing stanzas for this connection");
 				end
@@ -504,7 +504,7 @@
 				-- Pft! is what I say to list comprehensions
 				or (session.hosts and #array.collect(keys(session.hosts)):filter(subhost_filter)>0)) then
 				count_in = count_in + 1;
-				print("    "..host.." <- "..(session.from_host or "(unknown)")..(session.secure and "(encrypted)" or ""));
+				print("    "..host.." <- "..(session.from_host or "(unknown)")..(session.secure and " (encrypted)" or ""));
 				if session.type == "s2sin_unauthed" then
 						print("        Connection not yet authenticated");
 				end

mercurial