Allow localization of name-reserved kick message (bug 5146, r=asherkin).
This commit is contained in:
parent
fff17f8043
commit
283f1f012d
@ -939,7 +939,9 @@ void PlayerManager::OnClientSettingsChanged(edict_t *pEntity)
|
|||||||
{
|
{
|
||||||
if (!CheckSetAdminName(client, pPlayer, id))
|
if (!CheckSetAdminName(client, pPlayer, id))
|
||||||
{
|
{
|
||||||
pPlayer->Kick("Your name is reserved by SourceMod; set your password to use it.");
|
char kickMsg[128];
|
||||||
|
logicore.CoreTranslate(kickMsg, sizeof(kickMsg), "%T", 2, NULL, "Name Reserved", &client);
|
||||||
|
pPlayer->Kick(kickMsg);
|
||||||
RETURN_META(MRES_IGNORED);
|
RETURN_META(MRES_IGNORED);
|
||||||
}
|
}
|
||||||
} else if ((id = g_Admins.FindAdminByIdentity("name", old_name)) != INVALID_ADMIN_ID) {
|
} else if ((id = g_Admins.FindAdminByIdentity("name", old_name)) != INVALID_ADMIN_ID) {
|
||||||
|
@ -78,6 +78,11 @@
|
|||||||
"en" "No Vote"
|
"en" "No Vote"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Name Reserved"
|
||||||
|
{
|
||||||
|
"en" "Your name is reserved by SourceMod; set your password to use it."
|
||||||
|
}
|
||||||
|
|
||||||
/* This is a special "pass-thru" translation */
|
/* This is a special "pass-thru" translation */
|
||||||
"_s"
|
"_s"
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user