sources/network/rconsession.cpp

changeset 23
f7221183a994
parent 22
77d02446edf0
child 24
e651d02802c0
--- a/sources/network/rconsession.cpp	Sun Dec 14 20:24:16 2014 +0200
+++ b/sources/network/rconsession.cpp	Sun Dec 14 20:47:44 2014 +0200
@@ -1,4 +1,5 @@
 #include "rconsession.h"
+#include "../interface.h"
 
 RCONSession* g_rconSession = nullptr;
 
@@ -146,6 +147,7 @@
 				print ("Login successful!\n");
 				m_serverProtocol = packet.read_byte();
 				m_hostname = packet.read_string();
+				Interface::set_title (m_hostname);
 				m_state = RCON_CONNECTED;
 
 				for (int i = packet.read_byte(); i > 0; --i)

mercurial