mirror of
https://github.com/znc/znc.git
synced 2026-05-04 04:22:37 +02:00
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:
4
znc.h
4
znc.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user