diff --git a/.luacheckrc b/.luacheckrc index ad4daa1..020e39e 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -53,6 +53,7 @@ read_globals = { "GetTime", "hooksecurefunc", "InCombatLockdown", + "issecretvalue", "issecurevariable", "IsAltKeyDown", "IsControlKeyDown", diff --git a/AceComm-3.0/ChatThrottleLib.lua b/AceComm-3.0/ChatThrottleLib.lua index 6e89a6a..a31cf2d 100644 --- a/AceComm-3.0/ChatThrottleLib.lua +++ b/AceComm-3.0/ChatThrottleLib.lua @@ -23,7 +23,7 @@ -- LICENSE: ChatThrottleLib is released into the Public Domain -- -local CTL_VERSION = 31 +local CTL_VERSION = 32 local _G = _G @@ -279,6 +279,7 @@ end local bMyTraffic = false function ChatThrottleLib.Hook_SendChatMessage(text, chattype, language, destination, ...) + if issecretvalue and (issecretvalue(text) or issecretvalue(destination)) then return end if bMyTraffic then return end @@ -288,6 +289,7 @@ function ChatThrottleLib.Hook_SendChatMessage(text, chattype, language, destinat self.nBypass = self.nBypass + size -- just a statistic end function ChatThrottleLib.Hook_SendAddonMessage(prefix, text, chattype, destination, ...) + if issecretvalue and (issecretvalue(text) or issecretvalue(destination)) then return end if bMyTraffic then return end