@@ -55,28+54,35 @@ class CommandChgident : public Command
return CMD_FAILURE;
}
return CMD_FAILURE;
}
- dest->ChangeIdent(parameters[1].c_str());
+ if (IS_LOCAL(dest))
+ {
+ 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());
+ if (!ServerInstance->ULine(user->server))
+ ServerInstance->SNO->WriteGlobalSno('a', "%s used CHGIDENT to change %s's ident to '%s'", user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str());