828 break; |
828 break; |
829 |
829 |
830 case INPUTSTATE_PASSWORD: |
830 case INPUTSTATE_PASSWORD: |
831 if (g_inputState == INPUTSTATE_PASSWORD and not current_input().is_empty()) |
831 if (g_inputState == INPUTSTATE_PASSWORD and not current_input().is_empty()) |
832 { |
832 { |
833 RCONSession* session = RCONSession::new_session(); |
833 RCONSession* session = RCONSession::get_session(); |
|
834 session->disconnect(); |
834 session->set_password (current_input()); |
835 session->set_password (current_input()); |
835 session->connect (g_address); |
836 session->connect (g_address); |
836 set_input_state (INPUTSTATE_NORMAL); |
837 set_input_state (INPUTSTATE_NORMAL); |
837 } |
838 } |
838 break; |
839 break; |
961 } |
962 } |
962 |
963 |
963 if (g_address.port == 0) |
964 if (g_address.port == 0) |
964 g_address.port = 10666; |
965 g_address.port = 10666; |
965 |
966 |
966 RCONSession* session = RCONSession::new_session(); |
967 RCONSession* session = RCONSession::get_session(); |
|
968 session->disconnect(); |
967 session->set_password (password); |
969 session->set_password (password); |
968 session->connect (g_address); |
970 session->connect (g_address); |
969 } |
971 } |
970 |
972 |
971 // ------------------------------------------------------------------------------------------------- |
973 // ------------------------------------------------------------------------------------------------- |