Send message to users trying to host with bad IP.

This commit is contained in:
Ray Koopa 2020-07-11 02:07:42 +02:00
parent 0cfbc5b675
commit c97ef5deb2

View File

@ -416,6 +416,12 @@ namespace Syroot.Worms.Worms2.GameServer
else
{
SendPacket(connection, new Packet(PacketCode.CreateGameReply, value1: 0, error: 2));
SendPacket(connection, new Packet(PacketCode.ChatRoom,
value0: fromUser.ID,
value3: fromUser.RoomID,
data: $"GRP:Cannot host your game. Please use the Worms 2 Memory Changer to set your IP "
+ $"{fromUser.Connection.RemoteEndPoint.Address}. For more information, visit "
+ "worms2d.info/Worms_2_Memory_Changer"));
}
}