# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1637249214 -3600
# Node ID 89aef37fca54bb99894a2c85c680086bcbd724be
# Parent  ff4e34c448a44d8bb6bc459f9a4c6e8ec80c43e8
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?

diff -r ff4e34c448a4 -r 89aef37fca54 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,