From 79cc5b25c2fe3c3ec5f2a0ff6a77e5a8e050b825 Mon Sep 17 00:00:00 2001 From: Paddy Byers Date: Fri, 5 Jun 2026 22:46:17 +0100 Subject: [PATCH] Add OBJECT, OBJECT_SYNC, ANNOTATION protocol message actions Add missing action constants from TR2: OBJECT (19), OBJECT_SYNC (20), and ANNOTATION (21). Without these, rules using named actions like "OBJECT" would silently fail to match, and log output would show numeric IDs instead of readable names. Co-Authored-By: Claude Opus 4.6 --- protocol.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol.go b/protocol.go index 24eaac3..9ab0557 100644 --- a/protocol.go +++ b/protocol.go @@ -30,6 +30,9 @@ const ( ActionMessage = 15 ActionSync = 16 ActionAuth = 17 + ActionObject = 19 + ActionObjectSync = 20 + ActionAnnotation = 21 ) var actionNames = map[string]int{ @@ -51,6 +54,9 @@ var actionNames = map[string]int{ "MESSAGE": ActionMessage, "SYNC": ActionSync, "AUTH": ActionAuth, + "OBJECT": ActionObject, + "OBJECT_SYNC": ActionObjectSync, + "ANNOTATION": ActionAnnotation, } var actionNumbers = map[int]string{}