summaryrefslogtreecommitdiff
path: root/src/modules/m_chgident.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 14:16:16 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-13 14:16:16 +0000
commit2d043de488ea65807b51b35a4436bbbf570ca29c (patch)
treef07129f223918ecfbc38ec331b99b551a12a6ce6 /src/modules/m_chgident.cpp
parentd1ddbd62f91d4b9453447b5d25f5e41e807b0010 (diff)
removes unnecessary checks in modules, removes a superfluous else statement, fixes some formatting. Patch by dKingston.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11867 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chgident.cpp')
-rw-r--r--src/modules/m_chgident.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp
index 135b26446..f352c1c2b 100644
--- a/src/modules/m_chgident.cpp
+++ b/src/modules/m_chgident.cpp
@@ -22,7 +22,8 @@ class CommandChgident : public Command
public:
CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
{
- flags_needed = 'o'; syntax = "<nick> <newident>";
+ flags_needed = 'o';
+ syntax = "<nick> <newident>";
TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
}
@@ -36,12 +37,6 @@ class CommandChgident : public Command
return CMD_FAILURE;
}
- if (parameters[1].empty())
- {
- user->WriteServ("NOTICE %s :*** CHGIDENT: Ident must be specified", user->nick.c_str());
- return CMD_FAILURE;
- }
-
if (parameters[1].length() > ServerInstance->Config->Limits.IdentMax)
{
user->WriteServ("NOTICE %s :*** CHGIDENT: Ident is too long", user->nick.c_str());