// check if user is locked
if (target->GetExt("nick_locked", dummy))
{
- user->WriteServ("946 %s %s :This user's nickname is already locked.",user->nick,target->nick);
+ user->WriteNumeric(946, "%s %s :This user's nickname is already locked.",user->nick,target->nick);
return CMD_FAILURE;
}
if (target)
{
target->Shrink("nick_locked");
- user->WriteServ("945 %s %s :Nickname now unlocked.",user->nick,target->nick);
+ user->WriteNumeric(945, "%s %s :Nickname now unlocked.",user->nick,target->nick);
ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]);
return CMD_SUCCESS;
}
virtual Version GetVersion()
{
- return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
+ return Version(1, 2, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
}
if (user->GetExt("nick_locked", n))
{
- user->WriteServ("447 %s :You cannot change your nickname (your nick is locked)",user->nick);
+ user->WriteNumeric(447, "%s :You cannot change your nickname (your nick is locked)",user->nick);
return 1;
}
return 0;