- user->WriteServ("NOTICE %s :*** No such nickname: '%s'", user->nick.c_str(), parameters[0].c_str());
+ std::string oldnick = user->nick;
+ std::string newnick = target->nick;
+ if (target->ChangeNick(parameters[1], true))
+ {
+ ServerInstance->SNO->WriteGlobalSno('a', oldnick+" used SANICK to change "+newnick+" to "+parameters[1]);
+ }
+ else
+ {
+ ServerInstance->SNO->WriteGlobalSno('a', oldnick+" failed SANICK (from "+newnick+" to "+parameters[1]+")");
+ }