mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user