From 7aefbca742c20206ce18a64bc83322331ee67b39 Mon Sep 17 00:00:00 2001 From: Choupom Date: Sat, 9 Oct 2010 20:19:58 +0200 Subject: made so we can add the reason for a kick/ban (fixes #123) --- src/engine/shared/network_conn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/shared/network_conn.cpp') diff --git a/src/engine/shared/network_conn.cpp b/src/engine/shared/network_conn.cpp index 4ed157eb..b9757500 100644 --- a/src/engine/shared/network_conn.cpp +++ b/src/engine/shared/network_conn.cpp @@ -226,7 +226,7 @@ int CNetConnection::Feed(CNetPacketConstruct *pPacket, NETADDR *pAddr) SetError(Str); } else - SetError("no reason given"); + SetError("No reason given"); if(g_Config.m_Debug) dbg_msg("conn", "closed reason='%s'", ErrorString()); @@ -304,7 +304,7 @@ int CNetConnection::Update() (Now-m_LastRecvTime) > time_freq()*10) { m_State = NET_CONNSTATE_ERROR; - SetError("timeout"); + SetError("Timeout"); } // fix resends @@ -316,7 +316,7 @@ int CNetConnection::Update() if(Now-pResend->m_FirstSendTime > time_freq()*10) { m_State = NET_CONNSTATE_ERROR; - SetError("too weak connection (not acked for 10 seconds)"); + SetError("Too weak connection (not acked for 10 seconds)"); } else { -- cgit 1.4.1