mirror of
https://github.com/znc/znc.git
synced 2026-05-14 13:25:49 +02:00
modules: add OnAddNetwork, OnDeleteNetwork hooks.
This commit is contained in:
@@ -741,10 +741,11 @@ class CAdminMod : public CModule {
|
||||
return;
|
||||
}
|
||||
|
||||
if (pUser->AddNetwork(sNetwork)) {
|
||||
CString sNetworkAddError;
|
||||
if (pUser->AddNetwork(sNetwork, sNetworkAddError)) {
|
||||
PutModule("Network [" + sNetwork + "] added for user [" + pUser->GetUserName() + "].");
|
||||
} else {
|
||||
PutModule("Network [" + sNetwork + "] could not be added for user [" + pUser->GetUserName() + "].");
|
||||
PutModule("Network [" + sNetwork + "] could not be added for user [" + pUser->GetUserName() + "]: " + sNetworkAddError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user