summaryrefslogtreecommitdiff
path: root/src/modules/m_chgname.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_chgname.cpp')
-rw-r--r--src/modules/m_chgname.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp
index 17ad9dc48..0fac2bdad 100644
--- a/src/modules/m_chgname.cpp
+++ b/src/modules/m_chgname.cpp
@@ -22,7 +22,8 @@ class CommandChgname : public Command
public:
CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2)
{
- flags_needed = 'o'; syntax = "<nick> <newname>";
+ flags_needed = 'o';
+ syntax = "<nick> <newname>";
TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
}
@@ -36,12 +37,6 @@ class CommandChgname : public Command
return CMD_FAILURE;
}
- if (parameters[1].empty())
- {
- user->WriteServ("NOTICE %s :*** GECOS must be specified", user->nick.c_str());
- return CMD_FAILURE;
- }
-
if (parameters[1].length() > ServerInstance->Config->Limits.MaxGecos)
{
user->WriteServ("NOTICE %s :*** GECOS too long", user->nick.c_str());