Merge commit 'refs/pull/422/head' of github.com:znc/znc

This commit is contained in:
Alexey Sokolov
2013-10-20 17:42:45 +04:00
7 changed files with 54 additions and 14 deletions
+3 -2
View File
@@ -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);
}
}