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

This commit is contained in:
Ade
2026-10-17 20:56:14 +00:00
parent 4e1b79ff8e
commit d1115ca763
5 changed files with 13 additions and 10 deletions
+4 -4
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 not AA.db.noChat and arg4 ~= UnitName("player") then
if arg1 == AA.PREFIX and AA.db and AA.db.chat and arg4 ~= UnitName("player") then
if arg2 == "R" then
if AA.me and GetTime() - AA.lastReply > 5 then
AA.lastReply = GetTime()
@@ -203,7 +203,7 @@ SlashCmdList["PROFCD"] = function(msg)
AA.Send("R")
AA.Broadcast()
AA.FileSync()
AA.Print("synced (shared file: " .. ((ImportFile and ExportFile) and "on" or "off") .. ", chat request sent).")
AA.Print("synced (shared file: " .. ((ImportFile and ExportFile) and "on" or "off") .. ", chat sync " .. (AA.db.chat and "on" or "off") .. ").")
elseif cmd == "scan" then
AA.Print("client reports: level=" .. tostring(UnitLevel("player")) .. " gold(copper)=" .. tostring(GetMoney()))
AA.ScanSelf()
@@ -289,8 +289,8 @@ SlashCmdList["PROFCD"] = function(msg)
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") .. ".")
AA.db.chat = not AA.db.chat
AA.Print("guild / party / raid sync " .. (AA.db.chat and "|cff40ff40ON|r (cooldowns are sent to and accepted from guild / party / raid)" or "|cffff6060OFF|r (default; nothing is sent or accepted from chat)") .. ".")
else
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