Software /
code /
prosody
Diff
core/moduleapi.lua @ 11921:89aef37fca54
core.moduleapi: Fix name of renamed API in log message
hook_stanza was renamed hook_tag in 2012 in 2087d42f1e77
Why do we still have hook_stanza?
Why is this only a warning anyway?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Nov 2021 16:26:54 +0100 |
parent | 11823:36a7a3137d41 |
child | 11931:c65d5da8e99a |
line wrap: on
line diff
--- a/core/moduleapi.lua Thu Nov 18 16:21:43 2021 +0100 +++ b/core/moduleapi.lua Thu Nov 18 16:26:54 2021 +0100 @@ -104,7 +104,7 @@ -- If only 2 options then they specified no xmlns xmlns, name, handler, priority = nil, xmlns, name, handler; elseif not (handler and name) then - self:log("warn", "Error: Insufficient parameters to module:hook_stanza()"); + self:log("warn", "Error: Insufficient parameters to module:hook_tag()"); return; end return self:hook("stanza/"..(xmlns and (xmlns..":") or "")..name,