From 1e819280ee504883af4af27655ba22410274111f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 7 Jan 2020 10:06:28 +0000 Subject: Explicitly reject nicks beginning with a number in nationalchars. Closes #1745. --- src/modules/m_nationalchars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index 98b4b5fdc..446419716 100644 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -68,7 +68,7 @@ char utf8size(unsigned char * mb) /* Conditions added */ bool lwbNickHandler::Call(const std::string& nick) { - if (nick.empty()) + if (nick.empty() || isdigit(nick[0])) return false; const char* n = nick.c_str(); -- cgit v1.2.3