# HG changeset patch # User Kim Alvefur # Date 1527020577 -7200 # Node ID 780d728f969f5108a81b2297162d53c3de6f4b40 # Parent aaff40ec700128306b1b843247a098b5d291bb87 mod_c2s: Avoid concatenating potential nil value (fixes #753) diff -r aaff40ec7001 -r 780d728f969f plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Wed May 16 23:57:30 2018 +0100 +++ b/plugins/mod_c2s.lua Tue May 22 22:22:57 2018 +0200 @@ -168,7 +168,7 @@ function session.send() return false; end local reason_text = (reason and (reason.name or reason.text or reason.condition)) or reason; - session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason_text or "session closed"); + session.log("debug", "c2s stream for %s closed: %s", session.full_jid or session.ip or "", reason_text or "session closed"); -- Authenticated incoming stream may still be sending us stanzas, so wait for from remote local conn = session.conn;