return CMD_FAILURE;
}
- user->WriteServ("947 %s %s :Nickname now locked.", user->nick, source->nick");
+ user->WriteServ("947 %s %s :Nickname now locked.", user->nick.c_str(), parameters[1].c_str());
}
/* If we made it this far, extend the user */
{
// This has to be done *here*, because this metadata must be stored netwide.
target->Extend("nick_locked", "ON");
- ServerInstance->SNO->WriteToSnoMask('a', user->nick+" used NICKLOCK to change and hold "+target->nick+" to "+parameters[1]);
/* Only send out nick from local server */
if (IS_LOCAL(target))
{
+ ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used NICKLOCK to change and hold "+target->nick+" to "+parameters[1]);
std::string oldnick = user->nick;
std::string newnick = target->nick;
if (!target->ForceNickChange(parameters[1].c_str()))
}
}
- /* If we made it this far, the command is going out on the wire so send local snotice */
- ServerInstance->SNO->WriteToSnoMask('a', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]);
-
if (target)
{
target->Shrink("nick_locked");
+ if (IS_LOCAL(target))
+ ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]);
if (IS_LOCAL(user))
user->WriteNumeric(945, "%s %s :Nickname now unlocked.",user->nick.c_str(),target->nick.c_str());
}