modules: add OnAddNetwork, OnDeleteNetwork hooks.
This commit is contained in:
1 parent
8c6b4b8d21
commit
b5c898eaff
7 files changed
+54
-14
No files matched your search
@@ -861,9 +861,10 @@ public:
|
||||
WebSock.PrintErrorPage("Network name should be alphanumeric");
|
||||
return true;
|
||||
}
|
||||
pNetwork = pUser->AddNetwork(sName);
|
||||
CString sNetworkAddError;
|
||||
pNetwork = pUser->AddNetwork(sName, sNetworkAddError);
|
||||
if (!pNetwork) {
|
||||
WebSock.PrintErrorPage("Network [" + sName.Token(0) + "] already exists");
|
||||
WebSock.PrintErrorPage(sNetworkAddError);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user