aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets')
-rw-r--r--webAO/packets/handlers/handleMS.ts4
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]);