Fix --disable-modules

This was broken since r1561


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1567 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-07-18 15:44:32 +00:00
parent 1105652c1d
commit dfce94e39f

4
znc.h
View File

@@ -179,11 +179,11 @@ public:
virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) {
CClient *pClient = new CClient(sHost, uPort);
if (CZNC::Get().AllowConnectionFrom(sHost))
if (CZNC::Get().AllowConnectionFrom(sHost)) {
#ifdef _MODULES
CZNC::Get().GetModules().OnClientConnect(pClient, sHost, uPort);
#endif
else {
} else {
pClient->RefuseLogin("Too many anonymous connections from your IP");
#ifdef _MODULES
CZNC::Get().GetModules().OnFailedLogin("", sHost);