mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Chat option "Allowed Combat Repeat" combat fix
"Allowed Combat Repeat" option in Chat module now correctly only functions when in combat.
This commit is contained in:
@@ -976,6 +976,7 @@ end
|
|||||||
local function OnTextChanged(self)
|
local function OnTextChanged(self)
|
||||||
local text = self:GetText()
|
local text = self:GetText()
|
||||||
|
|
||||||
|
if UnitAffectingCombat('player') then
|
||||||
local MIN_REPEAT_CHARACTERS = E.db.chat.numAllowedCombatRepeat
|
local MIN_REPEAT_CHARACTERS = E.db.chat.numAllowedCombatRepeat
|
||||||
if strlen(text) > MIN_REPEAT_CHARACTERS then
|
if strlen(text) > MIN_REPEAT_CHARACTERS then
|
||||||
local repeatChar = true
|
local repeatChar = true
|
||||||
@@ -990,6 +991,7 @@ local function OnTextChanged(self)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if strlen(text) < 5 then
|
if strlen(text) < 5 then
|
||||||
if strsub(text, 1, 4) == "/tt " then
|
if strsub(text, 1, 4) == "/tt " then
|
||||||
|
|||||||
Reference in New Issue
Block a user