# HG changeset patch # User Kim Alvefur # Date 1508460698 -7200 # Node ID 93a4b13ca9f64bc0a10ba811a5f7f7bdee2a1946 # Parent 2afbb7d47905f4063914757a63cbbed055fbafef mod_firewall/test: Use session passed as argument instead of upvalue diff -r 2afbb7d47905 -r 93a4b13ca9f6 mod_firewall/test.lib.lua --- a/mod_firewall/test.lib.lua Fri Oct 20 02:49:34 2017 +0200 +++ b/mod_firewall/test.lib.lua Fri Oct 20 02:51:38 2017 +0200 @@ -30,7 +30,7 @@ local session = { notopen = true }; local stream_callbacks = { default_ns = "jabber:client" }; - function stream_callbacks.streamopened() + function stream_callbacks.streamopened(session) session.notopen = nil; end function stream_callbacks.streamclosed()