From 2921cef48fb437f01de005f53bbf8e4ca1470a74 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Nov 2021 16:26:54 +0100 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 9bbff0c9..ab154742 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -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, -- cgit v1.2.3