From c7b17549ed7029682d9012d3d53d3e34523f699f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Feb 2017 19:49:37 +0300 Subject: Discord: - support for channel creation & destruction on the fly - code cleaning --- protocols/Discord/src/gateway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Discord/src/gateway.cpp') diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp index 6eca5b1fe9..51a4b7344f 100644 --- a/protocols/Discord/src/gateway.cpp +++ b/protocols/Discord/src/gateway.cpp @@ -72,7 +72,7 @@ struct WSHeader void CDiscordProto::GatewaySend(const JSONNode &pRoot, int opCode) { - if (m_hGatewayConnection == NULL) + if (m_hGatewayConnection == nullptr) return; json_string szText = pRoot.write(); @@ -153,7 +153,7 @@ void CDiscordProto::GatewayThreadWorker() else conn.wPort = 443; m_hGatewayConnection = Netlib_OpenConnection(m_hGatewayNetlibUser, &conn); - if (m_hGatewayConnection == NULL) { + if (m_hGatewayConnection == nullptr) { debugLogA("Gateway connection failed to connect to %s:%d, exiting", m_szGateway.c_str(), conn.wPort); return; } @@ -292,7 +292,7 @@ void CDiscordProto::GatewayThreadWorker() } Netlib_CloseHandle(m_hGatewayConnection); - m_hGatewayConnection = NULL; + m_hGatewayConnection = nullptr; } ////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3