diff options
| author | stonedDiscord <Tukz@gmx.de> | 2023-01-23 22:27:41 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2023-01-23 22:27:41 +0100 |
| commit | 4f5275821ec75f493cec9a4332c5312b3521f8c6 (patch) | |
| tree | e5b45cb3073805f40a92314ab47f4fd997f07d36 /webAO/packets | |
| parent | 95c688f3683ba6c1cabf39beeaf972e5bd80b6c4 (diff) | |
detect blankpost
Diffstat (limited to 'webAO/packets')
| -rw-r--r-- | webAO/packets/handlers/handleMS.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts index de681a4..c30e777 100644 --- a/webAO/packets/handlers/handleMS.ts +++ b/webAO/packets/handlers/handleMS.ts @@ -154,6 +154,11 @@ export const handleMS = (args: string[]) => { chatmsg = Object.assign(extra_28, chatmsg); } + if (chatmsg.content.trim() === "") { + //blankpost + chatmsg.content = ""; + } + // our own message appeared, reset the buttons if (chatmsg.charid === client.charID) { resetICParams(); |
