From babba77b0606f8a7f5928a0ef666dfbc8d21a5a7 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 22 Apr 2018 14:07:21 +0200 Subject: [PATCH] chat: move wcol one hierarchy up --- modules/chat.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/chat.lua b/modules/chat.lua index b4eadff3..76292ed4 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -749,10 +749,11 @@ pfUI:RegisterModule("chat", function () _G.CHAT_SAY_GET = '[S]' .. default _G.CHAT_YELL_GET = '[Y]' .. default + local wcol 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) + wcol = string.format("%02x%02x%02x",cr * 255,cg * 255, cb * 255) _G.CHAT_WHISPER_GET = '|cff' .. wcol .. '[W]' .. default _G.CHAT_WHISPER_INFORM_GET = '[W]' .. default