# HG changeset patch # User Matthew Wild # Date 1244304926 -3600 # Node ID 9c736b993e076dedee92cfef3a384d7900cdffd5 # Parent 812c028a877d342b657177b23713b2e32f2f15c6 modulemanager: module:log() -> self:log() fix diff -r 812c028a877d -r 9c736b993e07 core/modulemanager.lua --- a/core/modulemanager.lua Sat Jun 06 17:08:47 2009 +0100 +++ b/core/modulemanager.lua Sat Jun 06 17:15:26 2009 +0100 @@ -378,7 +378,7 @@ -- 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);