Add chatSniffer localization and configuration UI

This commit is contained in:
2025-05-25 10:58:08 +02:00
parent ccbf0f8dc2
commit 263cf8e2e4
4 changed files with 434 additions and 399 deletions

View File

@@ -83,10 +83,7 @@ shared.Messenger = {
if not message.channel or message.channel == "" then
if Heimdall_Data.config.messenger.debug then
shared.dump(
message,
string.format("[%s] Invalid message: no channel specified", ModuleName)
)
shared.dump(message, string.format("[%s] Invalid message: no channel specified", ModuleName))
end
return
end
@@ -150,10 +147,7 @@ shared.Messenger = {
shared.dump(message, string.format("[%s] Sending message:", ModuleName))
end
if string.len(message.message) > 255 then
shared.dump(
message,
string.format("[%s] Message too long!!!!: %s", ModuleName, message.message)
)
shared.dump(message, string.format("[%s] Message too long!!!!: %s", ModuleName, message.message))
return
end
SendChatMessage(message.message, message.channel, nil, message.data)