JUMPNETWORK: Tell the user we have switched network before we do

The reason for this is so that any messages sent in *status by attaching
a new network will show up after the switched message.

<*status> Switched to efnet
<*status> You are currently disconnected from IRC. Use 'connect' to reconnect.
This commit is contained in:
Kyle Fuller
2012-01-11 14:44:10 +00:00
parent 3d7d1793aa
commit c2316321b8

View File

@@ -513,8 +513,8 @@ void CClient::UserCommand(CString& sLine) {
CIRCNetwork *pNetwork = m_pUser->FindNetwork(sNetwork);
if (pNetwork) {
SetNetwork(pNetwork);
PutStatus("Switched to " + sNetwork);
SetNetwork(pNetwork);
} else {
PutStatus("You don't have a network named " + sNetwork);
}