@@ -54,14+54,24 @@ 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(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());
+ 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());