summaryrefslogtreecommitdiff
path: root/src/modules/m_setident.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setident.cpp')
-rw-r--r--src/modules/m_setident.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index 4bd19fd7a..a98592299 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -39,6 +39,11 @@ class cmd_setident : public command_t
user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick);
return CMD_FAILURE;
}
+ if (len == 0)
+ {
+ user->WriteServ("NOTICE %s :*** SETIDENT: Ident too short", user->nick);
+ return CMD_FAILURE;
+ }
if (len > IDENTMAX)
{
user->WriteServ("NOTICE %s :*** Ident is too long", user->nick);