Changeset

8675:d3d74e923e4e

s2smanager: Explicitly export the incoming_s2s table [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 23 Mar 2018 13:14:05 +0100
parents 8674:55807a2f5d23
children 8676:39ab6a296419
files core/s2smanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Fri Mar 23 13:13:07 2018 +0100
+++ b/core/s2smanager.lua	Fri Mar 23 13:14:05 2018 +0100
@@ -17,9 +17,9 @@
 local log = logger_init("s2smanager");
 
 local prosody = _G.prosody;
-incoming_s2s = {};
+local incoming_s2s = {};
+_G.incoming_s2s = incoming_s2s;
 prosody.incoming_s2s = incoming_s2s;
-local incoming_s2s = incoming_s2s;
 local fire_event = prosody.events.fire_event;
 
 local _ENV = nil;