From e110538068747e6595facc504f775c3555d546b8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 14 Nov 2008 02:09:20 +0000 Subject: Another small fix, for logging in s2smanager --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index fe43b181..f5ad12f9 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -45,7 +45,7 @@ function send_to_host(from_host, to_host, data) if host.sendq then t_insert(host.sendq, data); else host.sendq = { data }; end else - host.log("debug", "going to send stanza to "..to_host.." from "..from_host); + (host.log or log)("debug", "going to send stanza to "..to_host.." from "..from_host); -- FIXME if hosts[to_host].from_host ~= from_host then log("error", "WARNING! This might, possibly, be a bug, but it might not..."); end hosts[to_host].sends2s(data); -- cgit v1.2.3