Software / code / prosody
Changeset
8676:39ab6a296419
stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 23 Mar 2018 13:15:19 +0100 |
| parents | 8675:d3d74e923e4e |
| children | 8677:369cde73a4d2 |
| files | core/stanza_router.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/stanza_router.lua Fri Mar 23 13:14:05 2018 +0100 +++ b/core/stanza_router.lua Fri Mar 23 13:15:19 2018 +0100 @@ -19,7 +19,7 @@ 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](...);