mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck]
This commit is contained in:
parent
d70c07e53f
commit
dad6f67294
1 changed files with 1 additions and 1 deletions
|
@ -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](...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue