From b341b118ae1b2fbcb754bc855daaeb96e871d4a6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 23 Mar 2018 13:15:19 +0100 Subject: stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck] --- core/stanza_router.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/stanza_router.lua') diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 0be92f88..49fe747c 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -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](...); -- cgit v1.2.3