diff --git a/src/Client.cpp b/src/Client.cpp index 3dcc72d0..e2802171 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -635,6 +635,13 @@ void CClient::AcceptLogin(CUser& User) { if (!m_pNetwork) m_pNetwork = m_pUser->FindNetwork("user"); // Otherwise, just try any network of the user. if (!m_pNetwork) m_pNetwork = *m_pUser->GetNetworks().begin(); + if (m_pNetwork && m_pUser->GetNetworks().size() > 1) { + PutStatusNotice("You have several networks configured, but no network was specified for the connection."); + PutStatusNotice("Selecting network [" + m_pNetwork->GetName() + "]. To see list of all configured networks, use /znc ListNetworks"); + PutStatusNotice("If you want to choose another network, use /znc JumpNetwork , or connect to ZNC with username " + m_pUser->GetUserName() + "/ (instead of just " + m_pUser->GetUserName() + ")"); + } + } else { + PutStatusNotice("You have no networks configured. Use /znc AddNetwork to add one."); } SetNetwork(m_pNetwork, false); diff --git a/src/ClientCommand.cpp b/src/ClientCommand.cpp index 6865cfeb..0f53cc43 100644 --- a/src/ClientCommand.cpp +++ b/src/ClientCommand.cpp @@ -437,7 +437,7 @@ void CClient::UserCommand(CString& sLine) { } if (m_pUser->AddNetwork(sNetwork)) { - PutStatus("Network added"); + PutStatus("Network added. Use /znc JumpNetwork " + sNetwork + ", or connect to ZNC with username " + m_pUser->GetUserName() + "/" + sNetwork + " (instead of just " + m_pUser->GetUserName() + ") to connect to it."); } else { PutStatus("Unable to add that network"); PutStatus("Perhaps that network is already added");