Allow @ and . in valid usernames

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@681 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-03-12 10:35:10 +00:00
parent 8e8c9ae322
commit 62a3c0b221
+1 -1
View File
@@ -405,7 +405,7 @@ bool CUser::IsValidUserName(const CString& sUserName) {
}
while (*p) {
if (*p != '-' && *p != '_' && !isalnum(*p)) {
if (*p != '@' && *p != '.' && *p != '-' && *p != '_' && !isalnum(*p)) {
return false;
}