fixed a bug from @me in server console
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401912
This commit is contained in:
parent
7c0e564db7
commit
7a8309deed
@ -961,13 +961,11 @@ void PlayerManager::ProcessCommandTarget(cmd_target_info_t *info)
|
||||
}
|
||||
}
|
||||
|
||||
if (strcmp(info->pattern, "@me") == 0)
|
||||
if (strcmp(info->pattern, "@me") == 0 && info->admin != 0)
|
||||
{
|
||||
info->targets[0] = info->admin;
|
||||
info->num_targets = 1;
|
||||
strncopy(info->target_name,
|
||||
pAdmin ? pAdmin->GetName() : "Console",
|
||||
info->target_name_maxlength);
|
||||
strncopy(info->target_name, pAdmin->GetName(), info->target_name_maxlength);
|
||||
info->target_name_style = COMMAND_TARGETNAME_RAW;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user