Skip to content

Commit

Permalink
swearing a lot shouldn't make the client crash :)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jun 25, 2023
1 parent e5a56ec commit 6576b57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions game/packet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down Expand Up @@ -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_
Expand Down
2 changes: 2 additions & 0 deletions game/server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 6576b57

Please sign in to comment.