--- a/sources/network/rconsession.cpp Thu Jul 23 02:22:26 2015 +0300 +++ b/sources/network/rconsession.cpp Thu Jul 23 02:35:13 2015 +0300 @@ -35,11 +35,11 @@ // ------------------------------------------------------------------------------------------------- // -RCONSession::RCONSession (Interface* iface) : +RCONSession::RCONSession() : m_state (RCON_DISCONNECTED), m_lastPing (0), m_numAdmins (0), - m_interface (iface) + m_interface (NULL) { if (not m_socket.set_blocking (false)) { @@ -73,6 +73,7 @@ Bytestream packet; packet.write_byte (CLRC_DISCONNECT); this->send (packet); + m_interface->print ("Disconnected from %s\n", m_address.to_string (IPAddress::WITH_PORT).chars()); m_interface->update_statusbar(); @@ -383,4 +384,11 @@ } } +// ------------------------------------------------------------------------------------------------- +// +void RCONSession::set_interface (Interface* iface) +{ + m_interface = iface; +} + END_ZFC_NAMESPACE \ No newline at end of file