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?
--- 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,