Check for discord webhook global config override
This commit is contained in:
@@ -93,6 +93,10 @@ function messageDiscordChatChannel(messageString) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getGlobalConfig().discord.sendChat) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getServerConfig().discord.sendChat) {
|
||||
return false;
|
||||
}
|
||||
@@ -108,6 +112,10 @@ function messageDiscordEventChannel(messageString) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getGlobalConfig().discord.sendEvents) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getServerConfig().discord.sendEvents) {
|
||||
return false;
|
||||
}
|
||||
@@ -123,6 +131,10 @@ function messageDiscordAdminChannel(messageString) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getGlobalConfig().discord.sendAdmin) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!getServerConfig().discord.sendAdmin) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user