From 2d043de488ea65807b51b35a4436bbbf570ca29c Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 13 Oct 2009 14:16:16 +0000 Subject: 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 --- src/modules/m_chgname.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/modules/m_chgname.cpp') 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 = " "; + flags_needed = 'o'; + syntax = " "; 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()); -- cgit v1.2.3