diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2010-10-09 20:19:58 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-11 00:31:14 +0200 |
| commit | 7aefbca742c20206ce18a64bc83322331ee67b39 (patch) | |
| tree | ce6874faa4220af59b79b241b9717e1fd3e19c1a /src/engine/shared/network_conn.cpp | |
| parent | 5754812dea6598335f60858d125639c92ec67914 (diff) | |
| download | zcatch-7aefbca742c20206ce18a64bc83322331ee67b39.tar.gz zcatch-7aefbca742c20206ce18a64bc83322331ee67b39.zip | |
made so we can add the reason for a kick/ban (fixes #123)
Diffstat (limited to 'src/engine/shared/network_conn.cpp')
| -rw-r--r-- | src/engine/shared/network_conn.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |