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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user