mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix error message for /znc addnetwork irc.network.net
This commit is contained in:
@@ -477,6 +477,10 @@ void CClient::UserCommand(CString& sLine) {
|
||||
PutStatus("Usage: AddNetwork <name>");
|
||||
return;
|
||||
}
|
||||
if (!CIRCNetwork::IsValidNetwork(sNetwork)) {
|
||||
PutStatus("Network name should be alphanumeric");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pUser->AddNetwork(sNetwork)) {
|
||||
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.");
|
||||
|
||||
Reference in New Issue
Block a user