mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
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?
This commit is contained in:
parent
4704104049
commit
2921cef48f
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ function api:hook_tag(xmlns, name, handler, priority)
|
|||
-- 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue