mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-13 17:00:49 +00:00
chat: only calculate color if wmod is set
This commit is contained in:
+4
-4
@@ -749,11 +749,11 @@ pfUI:RegisterModule("chat", function ()
|
|||||||
_G.CHAT_SAY_GET = '[S]' .. default
|
_G.CHAT_SAY_GET = '[S]' .. default
|
||||||
_G.CHAT_YELL_GET = '[Y]' .. default
|
_G.CHAT_YELL_GET = '[Y]' .. default
|
||||||
|
|
||||||
local cr, cg, cb, ca = strsplit(",", C.chat.global.whisper)
|
|
||||||
cr, cg, cb = tonumber(cr), tonumber(cg), tonumber(cb)
|
|
||||||
local wcol = string.format("%02x%02x%02x",cr * 255,cg * 255, cb * 255)
|
|
||||||
|
|
||||||
if C.chat.global.whispermod == "1" then
|
if C.chat.global.whispermod == "1" then
|
||||||
|
local cr, cg, cb, ca = strsplit(",", C.chat.global.whisper)
|
||||||
|
cr, cg, cb = tonumber(cr), tonumber(cg), tonumber(cb)
|
||||||
|
local wcol = string.format("%02x%02x%02x",cr * 255,cg * 255, cb * 255)
|
||||||
|
|
||||||
_G.CHAT_WHISPER_GET = '|cff' .. wcol .. '[W]' .. default
|
_G.CHAT_WHISPER_GET = '|cff' .. wcol .. '[W]' .. default
|
||||||
_G.CHAT_WHISPER_INFORM_GET = '[W]' .. default
|
_G.CHAT_WHISPER_INFORM_GET = '[W]' .. default
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user