mirror of
https://github.com/znc/znc.git
synced 2026-05-06 05:22:26 +02:00
Add regex comment for CUser::IsValidUserName()
This commit is contained in:
1
User.cpp
1
User.cpp
@@ -742,6 +742,7 @@ bool CUser::GetTimestampAppend() const { return m_bAppendTimestamp; }
|
||||
bool CUser::GetTimestampPrepend() const { return m_bPrependTimestamp; }
|
||||
|
||||
bool CUser::IsValidUserName(const CString& sUserName) {
|
||||
// /^[a-zA-Z][a-zA-Z@._\-]*$/
|
||||
const char* p = sUserName.c_str();
|
||||
|
||||
if (sUserName.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user