Comparison

net/connlisteners.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 7359:a5a080c12c96
child 8732:863f66cdd1df
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
1 -- COMPAT w/pre-0.9 1 -- COMPAT w/pre-0.9
2 local log = require "util.logger".init("net.connlisteners"); 2 local log = require "util.logger".init("net.connlisteners");
3 local traceback = debug.traceback; 3 local traceback = debug.traceback;
4 4
5 local _ENV = nil; 5 local _ENV = nil;
6 -- luacheck: std none
6 7
7 local function fail() 8 local function fail()
8 log("error", "Attempt to use legacy connlisteners API. For more info see https://prosody.im/doc/developers/network"); 9 log("error", "Attempt to use legacy connlisteners API. For more info see https://prosody.im/doc/developers/network");
9 log("error", "Legacy connlisteners API usage, %s", traceback("", 2)); 10 log("error", "Legacy connlisteners API usage, %s", traceback("", 2));
10 end 11 end