aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-18 16:26:54 +0100
committerKim Alvefur <zash@zash.se>2021-11-18 16:26:54 +0100
commit2921cef48fb437f01de005f53bbf8e4ca1470a74 (patch)
treeba78696fdd1da2ff5056def84d5bdb848b051f03 /core/moduleapi.lua
parent4704104049dfe65b851ec3e434b76907400e9fe3 (diff)
downloadprosody-2921cef48fb437f01de005f53bbf8e4ca1470a74.tar.gz
prosody-2921cef48fb437f01de005f53bbf8e4ca1470a74.zip
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?
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
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,