aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-23 13:15:19 +0100
committerKim Alvefur <zash@zash.se>2018-03-23 13:15:19 +0100
commitdad6f672946f5aec7e83c3c65546a6b041f3ab38 (patch)
tree5794667aa759d4c6038387f2fd81a386e20c2bab /core
parentd70c07e53f0db54a3a87d0b33ef30148b7cf4b41 (diff)
downloadprosody-dad6f672946f5aec7e83c3c65546a6b041f3ab38.tar.gz
prosody-dad6f672946f5aec7e83c3c65546a6b041f3ab38.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.lua2
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](...);