From 0d42ded78761bf09dd5e6deb0732dcd55b407265 Mon Sep 17 00:00:00 2001 From: silverleo Date: Mon, 8 Mar 2010 16:51:00 +0000 Subject: [PATCH] Added debug output for the listeners IsHostAllowed check. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1815 726aef4b-f618-498e-8847-2d620e286838 --- znc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/znc.h b/znc.h index 1ec1bd88..ab43a648 100644 --- a/znc.h +++ b/znc.h @@ -179,8 +179,9 @@ public: virtual ~CRealListener() {} virtual bool ConnectionFrom(const CString& sHost, unsigned short uPort) { - DEBUG(GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ")"); - return CZNC::Get().IsHostAllowed(sHost); + bool bHostAllowed = CZNC::Get().IsHostAllowed(sHost); + DEBUG(GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ") [" << (bHostAllowed ? "Allowed" : "Not allowed") << "]"); + return bHostAllowed; } virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) {