Allow - and _ as valid username chars

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@591 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-12-28 17:58:38 +00:00
parent 904801aa4b
commit 160f6e7d56

View File

@@ -388,9 +388,11 @@ bool CUser::IsValidUserName(const CString& sUserName) {
}
while (*p) {
if (!isalnum(*p++)) {
if (*p != '-' && *p != '_' && !isalnum(*p)) {
return false;
}
*p++;
}
return true;