stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck]

This commit is contained in:
Kim Alvefur 2018-03-23 13:15:19 +01:00
parent d70c07e53f
commit dad6f67294

View file

@ -19,7 +19,7 @@ local bare_sessions = _G.prosody.bare_sessions;
local core_post_stanza, core_process_stanza, core_route_stanza;
function deprecated_warning(f)
local function deprecated_warning(f)
_G[f] = function(...)
log("warn", "Using the global %s() is deprecated, use module:send() or prosody.%s(). %s", f, f, debug.traceback());
return prosody[f](...);