summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-07 10:06:28 +0000
committerSadie Powell <sadie@witchery.services>2020-01-07 10:06:28 +0000
commit1e819280ee504883af4af27655ba22410274111f (patch)
tree70349f012e6dc72b190085c80c3c6ac249606725 /src/modules
parent33bf99090f7e3e8d3fa7f570c486f1f3d7670db9 (diff)
Explicitly reject nicks beginning with a number in nationalchars.
Closes #1745.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_nationalchars.cpp2
1 files changed, 1 insertions, 1 deletions
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();