mirror of
https://github.com/znc/znc.git
synced 2026-05-08 14:24:45 +02:00
Describe how to use networks.
This commit is contained in:
@@ -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 <network>, or connect to ZNC with username " + m_pUser->GetUserName() + "/<network> (instead of just " + m_pUser->GetUserName() + ")");
|
||||
}
|
||||
} else {
|
||||
PutStatusNotice("You have no networks configured. Use /znc AddNetwork <network> to add one.");
|
||||
}
|
||||
|
||||
SetNetwork(m_pNetwork, false);
|
||||
|
||||
Reference in New Issue
Block a user