diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-18 16:26:54 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-18 16:26:54 +0100 |
commit | 2921cef48fb437f01de005f53bbf8e4ca1470a74 (patch) | |
tree | ba78696fdd1da2ff5056def84d5bdb848b051f03 /core | |
parent | 4704104049dfe65b851ec3e434b76907400e9fe3 (diff) | |
download | prosody-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')
-rw-r--r-- | core/moduleapi.lua | 2 |
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, |