From: <ps...@us...> - 2009-03-01 16:44:05
|
Revision: 1406 http://znc.svn.sourceforge.net/znc/?rev=1406&view=rev Author: psychon Date: 2009-03-01 16:43:58 +0000 (Sun, 01 Mar 2009) Log Message: ----------- CZNC::AddUser(): Always set the error return on a useful value Modified Paths: -------------- trunk/znc.cpp Modified: trunk/znc.cpp =================================================================== --- trunk/znc.cpp 2009-03-01 13:07:11 UTC (rev 1405) +++ trunk/znc.cpp 2009-03-01 16:43:58 UTC (rev 1406) @@ -1702,6 +1702,7 @@ bool CZNC::AddUser(CUser* pUser, CString& sErrorRet) { if (FindUser(pUser->GetUserName()) != NULL) { + sErrorRet = "User already exists"; DEBUG("User [" << pUser->GetUserName() << "] - already exists"); return false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |