dest->ChangeIdent(parameters[1].c_str());
if (!ServerInstance->ULine(user->server))
- ServerInstance->SNO->WriteToSnoMask('a', "%s used CHGIDENT to change %s's ident to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str());
+ ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(dest) ? 'a' : 'A', "%s used CHGIDENT to change %s's ident to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str());
/* route it! */
return CMD_SUCCESS;
class ModuleChgIdent : public Module
{
- CommandChgident* mycommand;
-
+ CommandChgident cmd;
public:
- ModuleChgIdent(InspIRCd* Me) : Module(Me)
+ ModuleChgIdent(InspIRCd* Me) : Module(Me), cmd(Me)
{
- mycommand = new CommandChgident(ServerInstance);
- ServerInstance->AddCommand(mycommand);
-
+ ServerInstance->AddCommand(&cmd);
}
virtual ~ModuleChgIdent()