* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
public:
CommandChghost(Module* Creator, char* hmap) : Command(Creator,"CHGHOST", 2), hostmap(hmap)
{
- flags_needed = 'o'; syntax = "<nick> <newhost>";
+ flags_needed = 'o';
+ syntax = "<nick> <newhost>";
TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
}
CmdResult Handle(const std::vector<std::string> ¶meters, User *user)
{
- const char * x = parameters[1].c_str();
+ const char* x = parameters[1].c_str();
for (; *x; x++)
{
return CMD_FAILURE;
}
}
- if (parameters[1].empty())
- {
- user->WriteServ("NOTICE %s :*** CHGHOST: Host must be specified", user->nick.c_str());
- return CMD_FAILURE;
- }
if ((parameters[1].c_str() - x) > 63)
{
Version GetVersion()
{
- return Version("Provides support for the CHGHOST command", VF_OPTCOMMON | VF_VENDOR, API_VERSION);
+ return Version("Provides support for the CHGHOST command", VF_OPTCOMMON | VF_VENDOR);
}
};