Skip to content

Commit 9d61648

Browse files
committed
chatmanager: allow multiple comma separated rights in omitChatDelayRights
1 parent b29c497 commit 9d61648

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[managers]/chatmanager/chatManagerSettings.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@ local chatManagerSettingsTemplate = {
99
end,
1010
},
1111

12-
["*omitChatDelayRight"] = {
12+
["*omitChatDelayRights"] = {
1313
"CHAT_MANAGER_OMIT_CHAT_DELAY_RIGHTS",
1414

1515
function(chatManagerSettingValue)
1616
local chatManagerOmitRight = { chatManagerSettingValue }
17+
local chatManagerOmitRights = split(chatManagerSettingValue, ",")
18+
19+
if (chatManagerOmitRights) then
20+
return chatManagerOmitRights
21+
end
1722

1823
return chatManagerOmitRight
1924
end,

[managers]/chatmanager/meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<settings>
99
<setting name="*mainChatDelay" value="1000"/> <!-- miliseconds between each message a player can send through main chat -->
10-
<setting name="*omitChatDelayRight" value="command.mute"/> <!-- required perms to not be affected by delay, if empty delay is disabled -->
10+
<setting name="*omitChatDelayRights" value="command.mute"/> <!-- required perms to not be affected by delay, if empty delay is disabled -->
1111
<setting name="*blockRepeatMessages" value="true"/> <!-- prevent a player from saying the same thing twice in a row to spam -->
1212
<setting name="*playerDefaultColor" value="0,255,255"/> <!-- default color for player if nameColorMode = "team" and not in team -->
1313
<setting name="*removeHex" value="false"

0 commit comments

Comments
 (0)