1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Fixed GetClientByName to match portions again.

Player specification can include "quotes"
This commit is contained in:
RaidMax
2017-06-16 17:35:51 -04:00
parent 2dc8f55e7c
commit 622a0a8ddc
5 changed files with 173 additions and 182 deletions

View File

@ -276,7 +276,6 @@ namespace IW4MAdmin
if (Args[0] == String.Empty)
return C;
if (Args[0][0] == '@') // user specifying target by database ID
{
int dbID = -1;
@ -297,7 +296,9 @@ namespace IW4MAdmin
E.Target = Players[cNum];
}
else
E.Target = GetClientByName(E.Data.Trim());
if (E.Target == null)
E.Target = GetClientByName(Args[0]);
if (E.Target == null && C.RequiresTarget)