Changeset

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
parents 11920:ff4e34c448a4
children 11922:28f5c8061dad
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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,