sources/network/rconsession.cpp

changeset 25
88b41eea08e0
parent 24
e651d02802c0
child 27
089e37c0887e
--- a/sources/network/rconsession.cpp	Sun Dec 14 23:21:38 2014 +0200
+++ b/sources/network/rconsession.cpp	Sun Dec 14 23:38:26 2014 +0200
@@ -64,6 +64,7 @@
 		Bytestream packet;
 		packet.write_byte (CLRC_DISCONNECT);
 		this->send (packet);
+		print ("Disconnected from %1\n", m_address.to_string (IP_WITH_PORT));
 	}
 
 	m_state = RCON_DISCONNECTED;
@@ -122,12 +123,12 @@
 			switch (ServerResponse (header))
 			{
 			case SVRC_OLDPROTOCOL:
-				print ("wrong version\n");
+				print ("Your RCON client is using outdated protocol.\n");
 				m_state = RCON_DISCONNECTED;
 				break;
 
 			case SVRC_BANNED:
-				print ("you're banned\n");
+				print ("You have been banned from the server.\n");
 				m_state = RCON_DISCONNECTED;
 				break;
 
@@ -141,7 +142,7 @@
 				break;
 
 			case SVRC_INVALIDPASSWORD:
-				print ("bad password\n");
+				print ("Password incorrect.\n");
 				m_state = RCON_DISCONNECTED;
 				break;
 

mercurial