aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-06 17:15:26 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-06 17:15:26 +0100
commit650013e7ec39a3c08ba6f4a2e36076d5d91d12a1 (patch)
tree179ee795678c35251b8dd69314106845f4c89b39
parentca4e395f0cb12ca39f9220feb2f984ad0be9d274 (diff)
downloadprosody-650013e7ec39a3c08ba6f4a2e36076d5d91d12a1.tar.gz
prosody-650013e7ec39a3c08ba6f4a2e36076d5d91d12a1.zip
modulemanager: module:log() -> self:log() fix
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 6d857d59..9bcd64e4 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -378,7 +378,7 @@ function api:hook_stanza(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 and xmlns) then
- module:log("warn", "Error: Insufficient parameters to module:hook_stanza()");
+ self:log("warn", "Error: Insufficient parameters to module:hook_stanza()");
return;
end
return api.hook(self, "stanza/"..(xmlns and (xmlns..":") or "")..name, function (data) return handler(data.origin, data.stanza, data); end, priority);