@@ -42,8 +42,11 @@ local AMS_MSG_MAX_ID = 65535 -- 16-bit ID
4242-- Dependencies
4343-- ============================================================================
4444
45- -- Smallfolk for serialization (already in AIO deps)
46- local Smallfolk = require (" AIO_Server.Dep_Smallfolk.smallfolk" )
45+ -- Smallfolk for serialization (vendored in AMS_Server directory)
46+ local Smallfolk = require (" AMS_Server.smallfolk" )
47+
48+ -- Chat channel constants for clarity
49+ local CHAT_CHANNEL_WHISPER = 7 -- CHAT_MSG_WHISPER
4750
4851-- ============================================================================
4952-- Core AMS Table
@@ -120,7 +123,7 @@ local function SendAddonMessage(player, message)
120123 if # message <= AMS_MAX_MSG_LENGTH then
121124 -- Prefix with marker for short message (ID = 0000, parts = 0000, partID = 0000)
122125 local packet = NumberToHex (0 ) .. NumberToHex (0 ) .. NumberToHex (0 ) .. message
123- player :SendAddonMessage (AMS_PREFIX , packet , 7 , player )
126+ player :SendAddonMessage (AMS_PREFIX , packet , CHAT_CHANNEL_WHISPER , player )
124127 return
125128 end
126129
@@ -142,7 +145,7 @@ local function SendAddonMessage(player, message)
142145 NumberToHex (partID )
143146
144147 local packet = header .. chunk
145- player :SendAddonMessage (AMS_PREFIX , packet , 7 , player )
148+ player :SendAddonMessage (AMS_PREFIX , packet , CHAT_CHANNEL_WHISPER , player )
146149 end
147150end
148151
0 commit comments