diff options
| author | stonedDiscord <Tukz@gmx.de> | 2025-06-22 21:51:55 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2025-06-22 21:51:55 +0200 |
| commit | d9d5455e6431c0cda3bb38f3ee290c33884bc5a2 (patch) | |
| tree | 44850e0024b3e9cca414c2c517d0b13fb4dc2425 /webAO/packets/handlers/handleMS.ts | |
| parent | 87dceac3eb7247ab8b5e72d830fe36b9ac67b7b9 (diff) | |
off by one
fix #263
Diffstat (limited to 'webAO/packets/handlers/handleMS.ts')
| -rw-r--r-- | webAO/packets/handlers/handleMS.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/packets/handlers/handleMS.ts b/webAO/packets/handlers/handleMS.ts index 7685bd6..2622fe6 100644 --- a/webAO/packets/handlers/handleMS.ts +++ b/webAO/packets/handlers/handleMS.ts @@ -10,8 +10,8 @@ import { handle_ic_speaking } from "../../viewport/utils/handleICSpeaking"; * @param {*} args packet arguments */ export const handleMS = (args: string[]) => { - // TODO: this if-statement might be a bug. - if (args[4] !== client.viewport.getChatmsg().content) { + // duplicate message + if (args[5] !== client.viewport.getChatmsg().content) { const char_id = Number(args[9]); const char_name = safeTags(args[3]); |
