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

@@ -64,6 +64,11 @@ function shared.Messenger.Init()
end
return
end
if string.find(message.channel, "^C") then
message.channel = "CHANNEL"
elseif string.find(message.channel, "^W") then
message.channel = "WHISPER"
end
if message.channel == "CHANNEL" and message.data and string.match(message.data, "%D") then
if Heimdall_Data.config.messenger.debug then
@@ -111,9 +116,6 @@ function shared.Messenger.Init()
print(string.format("[%s] Message too long!!!!: %s", ModuleName, message.message))
return
end
if string.find(message.channel, "^C") then
message.channel = "CHANNEL"
end
SendChatMessage(message.message, message.channel, nil, message.data)
end
local function Tick()