aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-01-23 22:27:41 +0100
committerstonedDiscord <Tukz@gmx.de>2023-01-23 22:27:41 +0100
commit4f5275821ec75f493cec9a4332c5312b3521f8c6 (patch)
treee5b45cb3073805f40a92314ab47f4fd997f07d36 /webAO
parent95c688f3683ba6c1cabf39beeaf972e5bd80b6c4 (diff)
detect blankpost
Diffstat (limited to 'webAO')
-rw-r--r--webAO/packets/handlers/handleMS.ts5
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();