/** Handle /SETIDENT
*/
-class cmd_setident : public command_t
+class CommandSetident : public Command
{
public:
- cmd_setident (InspIRCd* Instance) : command_t(Instance,"SETIDENT", 'o', 1)
+ CommandSetident (InspIRCd* Instance) : Command(Instance,"SETIDENT", 'o', 1)
{
this->source = "m_setident.so";
syntax = "<new-ident>";
+ TRANSLATE2(TR_TEXT, TR_END);
}
- CmdResult Handle(const char** parameters, int pcnt, userrec *user)
+ CmdResult Handle(const char** parameters, int pcnt, User *user)
{
if (!*parameters[0])
{
class ModuleSetIdent : public Module
{
- cmd_setident* mycommand;
+ CommandSetident* mycommand;
public:
ModuleSetIdent(InspIRCd* Me) : Module(Me)
{
- mycommand = new cmd_setident(ServerInstance);
+ mycommand = new CommandSetident(ServerInstance);
ServerInstance->AddCommand(mycommand);
}