mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix error message at webadmin #239
This commit is contained in:
@@ -817,6 +817,10 @@ public:
|
||||
WebSock.PrintErrorPage("Network number limit reached. Ask an admin to increase the limit for you, or delete few old ones from Your Settings");
|
||||
return true;
|
||||
}
|
||||
if (!CIRCNetwork::IsValidNetwork(sName)) {
|
||||
WebSock.PrintErrorPage("Network name should be alphanumeric");
|
||||
return true;
|
||||
}
|
||||
pNetwork = pUser->AddNetwork(sName);
|
||||
if (!pNetwork) {
|
||||
WebSock.PrintErrorPage("Network [" + sName.Token(0) + "] already exists");
|
||||
|
||||
Reference in New Issue
Block a user