Загрузить файлы в «/»

This commit is contained in:
Ade
2026-10-14 12:30:24 +00:00
parent 026049b261
commit 25a9d6e700
5 changed files with 31 additions and 5 deletions
+20 -3
View File
@@ -163,7 +163,7 @@ ev:SetScript("OnEvent", function()
AA.bagDirty = true
elseif event == "CHAT_MSG_ADDON" then
if arg1 == AA.PREFIX and AA.db and arg4 ~= UnitName("player") then
if arg1 == AA.PREFIX and AA.db and not AA.db.noChat and arg4 ~= UnitName("player") then
if arg2 == "R" then
if AA.me and GetTime() - AA.lastReply > 5 then
AA.lastReply = GetTime()
@@ -266,16 +266,33 @@ SlashCmdList["PROFCD"] = function(msg)
elseif cmd == "del" and arg ~= "" then
local a = string.lower(arg)
local n = 0
AA.db.ignored = AA.db.ignored or {}
for k, c in pairs(AA.db.chars) do
if k ~= AA.myKey and (string.lower(c.name) == a or string.lower(k) == a) then
AA.db.chars[k] = nil
AA.db.ignored[k] = true -- do not accept this character again from chat / shared file
n = n + 1
end
end
AA.Print("removed " .. n .. " character(s).")
AA.Print("removed " .. n .. " character(s) and ignoring them from now on (/ade unignore <name> undoes it).")
AA.fileDirty = true
AA.Refresh()
if AA.RefreshManager then AA.RefreshManager() end
elseif cmd == "unignore" and arg ~= "" then
local a = string.lower(arg)
local n = 0
for k in pairs(AA.db.ignored or {}) do
if string.lower(k) == a or string.lower(string.gsub(k, "%-.*$", "")) == a then
AA.db.ignored[k] = nil
n = n + 1
end
end
AA.Print("no longer ignoring " .. n .. " character(s).")
elseif cmd == "chat" then
AA.db.noChat = not AA.db.noChat
AA.Print("guild / party / raid sync " .. (AA.db.noChat and "|cffff6060OFF|r (nothing is sent or accepted from chat)" or "|cff40ff40ON|r") .. ".")
else
AA.Print("/ade - alts window | cd (cooldowns) | find <item> | list | sync | scan | status | debug | bags | export | import | minimap | alert | reset | del <name>")
AA.Print("/ade - alts window | cd (cooldowns) | find <item> | list | sync | scan | status | debug | bags | chat | unignore <name> | export | import | minimap | alert | reset | del <name>")
end
end