Skip to content

Commit

Permalink
feat(is_tiny): add TINY_IPB subtype of IS_TINY packet
Browse files Browse the repository at this point in the history
Added `TINY_IPB` into the `TinyType` enum.

fix #47
  • Loading branch information
mkapal committed Jul 28, 2024
1 parent c7c4df9 commit 7e81e7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/packets/IS_TINY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const SENDABLE_TINY_TYPES = [
TinyType.TINY_SLC,
TinyType.TINY_MAL,
TinyType.TINY_PLH,
TinyType.TINY_IPB,
] as const;

export const INFO_REQUEST_TINY_TYPES = [
Expand All @@ -85,6 +86,7 @@ export const INFO_REQUEST_TINY_TYPES = [
TinyType.TINY_SLC,
TinyType.TINY_MAL,
TinyType.TINY_PLH,
TinyType.TINY_IPB,
] as const;

export type SendableTinyType = (typeof SENDABLE_TINY_TYPES)[number];
Expand Down
3 changes: 3 additions & 0 deletions src/packets/enums/TinyType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@ export enum TinyType {

/** Info request: send {@link IS_PLH} listing player handicaps */
TINY_PLH,

/** Info request: send {@link IS_IPB} listing the IP bans */
TINY_IPB,
}

0 comments on commit 7e81e7c

Please sign in to comment.