# HG changeset patch # User Kim Alvefur # Date 1589094196 -7200 # Node ID 001c756ead7de0973836250f110345947b9d49fc # Parent 1b68954a743a1662c66acde55dc69db8a38b3498 mod_firewall/test: Print replies to stderr instead of crashing diff -r 1b68954a743a -r 001c756ead7d mod_firewall/test.lib.lua --- a/mod_firewall/test.lib.lua Sat May 09 21:14:59 2020 +0200 +++ b/mod_firewall/test.lib.lua Sun May 10 09:03:16 2020 +0200 @@ -49,6 +49,9 @@ end local session = { notopen = true }; + function session.send(stanza) + stderr("Reply:", "\n"..tostring(stanza).."\n"); + end local stream = xmppstream.new(session, stream_callbacks); stream:feed(""); local line_count = 0;