From 6576b576996e49c179957d84b07334d28fe2cf99 Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Sun, 25 Jun 2023 13:54:23 -0400 Subject: [PATCH] swearing a lot shouldn't make the client crash :) --- game/packet/client.go | 6 ++++++ game/server/conn.go | 2 ++ 2 files changed, 8 insertions(+) diff --git a/game/packet/client.go b/game/packet/client.go index 8847302..a376b80 100755 --- a/game/packet/client.go +++ b/game/packet/client.go @@ -63,6 +63,7 @@ var ClientMessageTable = common.NewMessageTable(map[uint16]ClientMessage{ 0x0042: &ClientShotArrow{}, 0x0043: &ClientRequestServerList{}, 0x0048: &ClientLoadProgress{}, + 0x004F: &Client004F{}, 0x0063: &ClientRoomLoungeAction{}, 0x0069: &ClientUserMacrosSet{}, 0x0081: &ClientMultiplayerJoin{}, @@ -365,6 +366,11 @@ type ClientLoadProgress struct { Progress uint8 } +// Client004F is sent when the client gags you from chatting due to typing too much or too many obscenities +type Client004F struct { + ClientMessage_ +} + // ClientRoomLoungeAction type ClientRoomLoungeAction struct { ClientMessage_ diff --git a/game/server/conn.go b/game/server/conn.go index 907dbab..da65cc7 100755 --- a/game/server/conn.go +++ b/game/server/conn.go @@ -644,6 +644,8 @@ func (c *Conn) Handle(ctx context.Context) error { c.sendInventory(ctx) c.fetchCharacters(ctx) c.sendCharacterData(ctx) + case *gamepacket.Client004F: + // ignore default: return fmt.Errorf("unexpected message: %T", t) }