See #1147: show new server name when jumping

This updates the connect command in *status to retrieve the next server
object before triggering the jump, thereby allowing it to display the
next server's name rather than a generic message.
This commit is contained in:
John Reese
2015-10-12 16:27:01 -07:00
parent 69b031c43c
commit 9aff0cd566
3 changed files with 11 additions and 3 deletions

View File

@@ -334,6 +334,10 @@ void CClient::UserCommand(CString& sLine) {
}
}
if (!pServer) {
pServer = m_pNetwork->GetNextServer(false);
}
if (GetIRCSock()) {
GetIRCSock()->Quit();
if (pServer)