# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1655148342 -7200
# Node ID 3b7e97e0a8ef0067b119ec1fa8e6b83f223cab58
# Parent  12962a1001c2927190615b8eb41e459036606ed9
mod_admin_shell: Show session id ping reply came

To point out which one when more than one connection was established, or
if it's an existing connection, allows correlation with s2s:show() or
with logs.

diff -r 12962a1001c2 -r 3b7e97e0a8ef plugins/mod_admin_shell.lua
--- a/plugins/mod_admin_shell.lua	Mon Jun 13 19:17:36 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Mon Jun 13 21:25:42 2022 +0200
@@ -1533,7 +1533,7 @@
 		module:unhook("s2sin-established", onestablished);
 		module:unhook("s2s-destroyed", ondestroyed);
 	end):next(function(pong)
-		return ("pong from %s in %gs"):format(pong.stanza.attr.from, time.now() - time_start);
+		return ("pong from %s on %s in %gs"):format(pong.stanza.attr.from, pong.origin.id, time.now() - time_start);
 	end);
 end