class CommandChgname : public Command
{
public:
- CommandChgname (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"CHGNAME", "o", 2, 2)
+ CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2)
{
+ flags_needed = 'o';
syntax = "<nick> <newname>";
TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
}
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());
CommandChgname cmd;
public:
- ModuleChgName(InspIRCd* Me) : Module(Me), cmd(Me, this)
+ ModuleChgName() : cmd(this)
{
ServerInstance->AddCommand(&cmd);
}
virtual Version GetVersion()
{
- return Version("$Id$", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+ return Version("Provides support for the CHGNAME command", VF_OPTCOMMON | VF_VENDOR);
}
};