minor fix :^)

This commit is contained in:
Lukas Moungos
2019-09-16 19:25:50 +02:00
parent 799d0aabe5
commit a86726e4c1

View File

@@ -514,7 +514,7 @@ namespace ReallifeGamemode.Server.Managers
User user = client.GetUser(); User user = client.GetUser();
string nameOrId = JsonConvert.DeserializeObject<string>(jsonNameOrId); string nameOrId = JsonConvert.DeserializeObject<string>(jsonNameOrId);
Client target = ClientService.GetClientByNameOrId(nameOrId); Client target = ClientService.GetClientByNameOrId(nameOrId);
if (target == null || !target.IsLoggedIn() ) if (target == null || !target.IsLoggedIn() || target == client)
{ {
ChatService.PlayerNotFound(client); ChatService.PlayerNotFound(client);
return; return;