remove SAY and YELL message warning

This commit is contained in:
Bunny67
2020-07-02 21:36:58 +03:00
parent 3fd54a6fb3
commit 85d9724eab
3 changed files with 2 additions and 35 deletions
+2 -6
View File
@@ -4372,14 +4372,10 @@ function WeakAuras.HandleChatAction(message_type, message, message_dest, message
elseif UnitInParty("player") then
pcall(function() SendChatMessage(message, "PARTY") end)
else
if IsInInstance() then
pcall(function() SendChatMessage(message, "SAY") end)
end
pcall(function() SendChatMessage(message, "SAY") end)
end
elseif(message_type == "SAY" or message_type == "YELL") then
if IsInInstance() then
pcall(function() SendChatMessage(message, message_type, nil, nil) end)
end
pcall(function() SendChatMessage(message, message_type, nil, nil) end)
else
pcall(function() SendChatMessage(message, message_type, nil, nil) end);
end
-18
View File
@@ -6,10 +6,6 @@ local L = WeakAuras.L
local send_chat_message_types = WeakAuras.send_chat_message_types;
local sound_types = WeakAuras.sound_types;
local RestrictedChannelCheck = function(data)
return data.message_type == "SAY" or data.message_type == "YELL" or data.message_type == "SMARTRAID"
end
function WeakAuras.AddActionOption(id, data)
local action = {
type = "group",
@@ -89,13 +85,6 @@ function WeakAuras.AddActionOption(id, data)
disabled = function() return not data.actions.start.do_message end,
control = "WeakAurasSortedDropdown"
},
start_message_warning = {
type = "description",
width = WeakAuras.doubleWidth,
name = L["Note: Automated Messages to SAY and YELL are blocked outside of Instances."],
order = 2.5,
hidden = function() return not RestrictedChannelCheck(data.actions.start) end
},
start_message_space = {
type = "execute",
width = WeakAuras.normalWidth,
@@ -468,13 +457,6 @@ function WeakAuras.AddActionOption(id, data)
disabled = function() return not data.actions.finish.do_message end,
control = "WeakAurasSortedDropdown"
},
finish_message_warning = {
type = "description",
width = WeakAuras.doubleWidth,
name = L["Note: Automated Messages to SAY and YELL are blocked outside of Instances."],
order = 22.5,
hidden = function() return not RestrictedChannelCheck(data.actions.finish) end
},
finish_message_space = {
type = "execute",
width = WeakAuras.normalWidth,
-11
View File
@@ -650,17 +650,6 @@ local function addControlsForChange(args, order, data, conditionVariable, condit
return false;
end
args["condition" .. i .. "value" .. j .. "message type warning"] = {
type = "description",
width = WeakAuras.doubleWidth,
name = L["Note: Automated Messages to SAY and YELL are blocked outside of Instances."],
order = order,
hidden = function()
return not (anyMessageType("SAY") or anyMessageType("YELL") or anyMessageType("SMARTRAID"));
end
}
order = order + 1;
args["condition" .. i .. "value" .. j .. "message dest"] = {
type = "input",
width = WeakAuras.normalWidth,