mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
CZNC::AddUser(): Always set the error return on a useful value
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1406 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1
znc.cpp
1
znc.cpp
@@ -1702,6 +1702,7 @@ bool CZNC::DeleteUser(const CString& sUsername) {
|
||||
|
||||
bool CZNC::AddUser(CUser* pUser, CString& sErrorRet) {
|
||||
if (FindUser(pUser->GetUserName()) != NULL) {
|
||||
sErrorRet = "User already exists";
|
||||
DEBUG("User [" << pUser->GetUserName() << "] - already exists");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user