# HG changeset patch # User Kim Alvefur # Date 1748094826 -7200 # Node ID cbb8dc92daa94ad9650ddc868f555586591aac9c # Parent 3609d8fcad0062833e3a1472690fb786d1133c9f mod_s2s: Fix log to use formatting instead of concatenation (fixes #1461) Somehow this escaped semgrep, probably because the (x or y)() syntax. Thanks Ge0rG diff -r 3609d8fcad00 -r cbb8dc92daa9 plugins/mod_s2s.lua --- a/plugins/mod_s2s.lua Mon May 19 18:12:57 2025 +0200 +++ b/plugins/mod_s2s.lua Sat May 24 15:53:46 2025 +0200 @@ -192,7 +192,7 @@ -- We have a connection to this host already if host.type == "s2sout_unauthed" and (stanza.name ~= "db:verify" or not host.dialback_key) then - (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); + (host.log or log)("debug", "trying to send over unauthed s2sout to %s", to_host); -- Queue stanza until we are able to send it if not host.sendq then