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:
@ -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)
|
||||
|
Reference in New Issue
Block a user