diff options
Diffstat (limited to 'src/modules/m_chgname.cpp')
-rw-r--r-- | src/modules/m_chgname.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index 2e1171526..f3ea9cc25 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -37,7 +37,11 @@ class cmd_chgname : public command_t user->WriteServ("401 %s %s :No such nick/channel", user->nick, parameters[0]); return CMD_FAILURE; } - + if (!*parameters[1]) + { + user->WriteServ("NOTICE %s :*** GECOS is too short", user->nick); + return CMD_FAILURE; + } if (IS_LOCAL(dest)) { dest->ChangeName(parameters[1]); |