aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleMS.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets/handlers/handleMS.ts')
-rw-r--r--webAO/packets/handlers/handleMS.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts
index 92d65db..c30e777 100644
--- a/webAO/packets/handlers/handleMS.ts
+++ b/webAO/packets/handlers/handleMS.ts
@@ -78,7 +78,7 @@ export const handleMS = (args: string[]) => {
if (extrafeatures.includes("cccc_ic_support")) {
const extra_cccc = {
- showname: safeTags(args[16]),
+ showname: prepChat(args[16]),
other_charid: Number(args[17]),
other_name: safeTags(args[18]),
other_emote: safeTags(args[19]),
@@ -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();