From: <ps...@us...> - 2009-07-18 15:44:38
|
Revision: 1567 http://znc.svn.sourceforge.net/znc/?rev=1567&view=rev Author: psychon Date: 2009-07-18 15:44:32 +0000 (Sat, 18 Jul 2009) Log Message: ----------- Fix --disable-modules This was broken since r1561 Modified Paths: -------------- trunk/znc.h Modified: trunk/znc.h =================================================================== --- trunk/znc.h 2009-07-17 21:04:41 UTC (rev 1566) +++ trunk/znc.h 2009-07-18 15:44:32 UTC (rev 1567) @@ -179,11 +179,11 @@ 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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |