diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-23 13:15:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-23 13:15:19 +0100 |
commit | b341b118ae1b2fbcb754bc855daaeb96e871d4a6 (patch) | |
tree | 5794667aa759d4c6038387f2fd81a386e20c2bab /core | |
parent | fd8059c114bb62502f6e3ebb74a722ab54299791 (diff) | |
download | prosody-b341b118ae1b2fbcb754bc855daaeb96e871d4a6.tar.gz prosody-b341b118ae1b2fbcb754bc855daaeb96e871d4a6.zip |
stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck]
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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](...); |