Shorten every instance of "CHANNEL" to "C" and whisper too

To save a little space in messages, it's getting very cramped
This commit is contained in:
2025-01-24 20:35:49 +01:00
parent 036b6b23a8
commit 30068a5b11
12 changed files with 33 additions and 29 deletions

View File

@@ -140,6 +140,7 @@ function shared.Whoer.Init()
---@type WHOQuery[]
local whoQueries = {
WHOQuery.new("g-\"БеспредеЛ\"", {}),
WHOQuery.new("g-\"ЗАО бещёки\"", {}),
--WHOQuery.new("g-\"Dovahkin\"", {}),
WHOQuery.new(
"z-\"Orgrimmar\" z-\"Durotar\" z-\"Valley of Trials\" r-\"Human\" r-\"Dwarf\" r-\"Night Elf\"",
@@ -194,7 +195,7 @@ function shared.Whoer.Init()
---@type Message
local msg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel,
message = text
}
@@ -209,7 +210,7 @@ function shared.Whoer.Init()
for _, name in pairs(Heimdall_Data.config.whisperNotify) do
---@type Message
local msg = {
channel = "WHISPER",
channel = "W",
data = name,
message = text
}
@@ -224,7 +225,7 @@ function shared.Whoer.Init()
if Heimdall_Data.config.echoToRussian then
-- Russian message
local ruMsg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel .. "ru",
message = player:NotifyRu()
}
@@ -264,7 +265,7 @@ function shared.Whoer.Init()
---@type Message
local msg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel,
message = text
}
@@ -281,7 +282,7 @@ function shared.Whoer.Init()
---@type Message
msg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel .. "ru",
message = text
}
@@ -298,7 +299,7 @@ function shared.Whoer.Init()
for _, name in pairs(Heimdall_Data.config.whisperNotify) do
---@type Message
local msg = {
channel = "WHISPER",
channel = "W",
data = name,
message = text
}
@@ -327,7 +328,7 @@ function shared.Whoer.Init()
---@type Message
local msg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel,
message = text
}
@@ -342,7 +343,7 @@ function shared.Whoer.Init()
---@type Message
msg = {
channel = "CHANNEL",
channel = "C",
data = Heimdall_Data.config.who.notifyChannel .. "ru",
message = text
}
@@ -359,7 +360,7 @@ function shared.Whoer.Init()
for _, name in pairs(Heimdall_Data.config.whisperNotify) do
---@type Message
local msg = {
channel = "WHISPER",
channel = "W",
data = name,
message = text
}