core.moduleapi: Fix name of renamed API in log message
authorKim Alvefur <zash@zash.se>
Thu, 18 Nov 2021 16:26:54 +0100
changeset 11925 89aef37fca54
parent 11924 ff4e34c448a4
child 11926 28f5c8061dad
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?
core/moduleapi.lua
--- 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,