mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
Fix some warnings with -pedantic
"invoking macro GLOBALMODULECALL argument 4: empty macro arguments are undefined in ISO C90 and ISO C++98" git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2177 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-2
@@ -49,11 +49,11 @@ bool CRealListener::ConnectionFrom(const CString& sHost, unsigned short uPort) {
|
||||
Csock* CRealListener::GetSockObj(const CString& sHost, unsigned short uPort) {
|
||||
CIncomingConnection *pClient = new CIncomingConnection(sHost, uPort, m_pParent->GetAcceptType());
|
||||
if (CZNC::Get().AllowConnectionFrom(sHost)) {
|
||||
GLOBALMODULECALL(OnClientConnect(pClient, sHost, uPort), NULL, NULL, );
|
||||
GLOBALMODULECALL(OnClientConnect(pClient, sHost, uPort), NULL, NULL, NOTHING);
|
||||
} else {
|
||||
pClient->Write(":irc.znc.in 464 unknown-nick :Too many anonymous connections from your IP\r\n");
|
||||
pClient->Close(Csock::CLT_AFTERWRITE);
|
||||
GLOBALMODULECALL(OnFailedLogin("", sHost), NULL, NULL, );
|
||||
GLOBALMODULECALL(OnFailedLogin("", sHost), NULL, NULL, NOTHING);
|
||||
}
|
||||
return pClient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user