diff options
Diffstat (limited to 'src/modules/m_chgident.cpp')
-rw-r--r-- | src/modules/m_chgident.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index 21107f124..e3067fe56 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -38,6 +38,11 @@ class cmd_chgident : public command_t return CMD_FAILURE; } + if (!*parameters[1]) + { + user->WriteServ("NOTICE %s :*** CHGIDENT: Needs non-zero length ident", user->nick); + return CMD_FAILURE; + } if(!ServerInstance->IsIdent(parameters[1])) { user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick); |