mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-01-27 14:18:00 +03:00
Send message to users trying to host with bad IP.
This commit is contained in:
parent
0cfbc5b675
commit
c97ef5deb2
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user