diff --git a/AdeAlts.toc b/AdeAlts.toc index 2a336b8..7aaa29a 100644 --- a/AdeAlts.toc +++ b/AdeAlts.toc @@ -2,7 +2,7 @@ ## Title: Ade Alts ## Notes: Alt manager: cooldowns, inventory, bank, gear, professions and missing recipes of all your characters. /ade ## Author: Ade -## Version: 1.2.2 +## Version: 1.2.3 ## SavedVariables: AdeAltsDB, ProfCDTrackerDB ## OptionalDeps: pfUI, SuperWoW, nampower core.lua diff --git a/CHANGELOG.md b/CHANGELOG.md index 17dd50b..7b33457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.2.3 +- Guild / party / raid chat sync is now **off by default**; enable it with `/ade chat`. Shared-file sync (SuperWoW) is unaffected. + ## 1.2.2 - Fixed: lists (recipes, bags, bank, search results) jumped back to the top every few seconds. - Fixed: a dropped profession stayed in the list (the shared file / chat brought it back). Dropped professions are now remembered and the removal syncs between accounts. diff --git a/README.md b/README.md index d4637bd..89cf784 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ including those on **other accounts**, and shows it in one window. - Turtle WoW / any 1.12 client. - Optional but recommended: **[SuperWoW](https://github.com/balakethelock/SuperWoW)** – lets all accounts in the same - game folder share data through `imports\AdeAlts.txt`. Without it, only cooldowns sync (guild / party / raid chat). + game folder share data through `imports\AdeAlts.txt`. Without it, nothing is shared between accounts unless you enable chat sync with `/ade chat` (cooldowns only). - Optional: pfUI (minimap button docking and skin). ## Installation @@ -43,7 +43,7 @@ Every alias works the same: `/ade`, `/adealts`, `/pcd`, `/profcd`, `/cdt`. | `/ade cd` (also `cooldowns`) | Open / close the profession cooldowns window | | `/ade find ` | Open the manager and search items and recipes across all alts | | `/ade list` | Print all cooldowns to the chat frame | -| `/ade sync` | Sync now: shared file (SuperWoW) and a chat request to guild/party/raid | +| `/ade sync` | Sync now: shared file (SuperWoW) and a chat request to guild/party/raid (only if chat sync is on) | | `/ade scan` | Rescan this character (level, gold, bags, gear, professions) and print what the client reports | | `/ade status` | Show whether SuperWoW file sync is on and how many characters are known | | `/ade export` | Open a text box with all data (copy it to move data by hand) | @@ -56,13 +56,13 @@ Every alias works the same: `/ade`, `/adealts`, `/pcd`, `/profcd`, `/cdt`. | `/ade reset` | Set all cooldowns of the current character to Ready | | `/ade del ` | Remove a cached character and ignore it from now on, so chat / shared-file sync cannot bring it back (not the one you are logged in on) | | `/ade unignore ` | Stop ignoring a character removed with `del` | -| `/ade chat` | Turn guild / party / raid addon-message sync on or off (SuperWoW file sync is unaffected) | +| `/ade chat` | Turn guild / party / raid addon-message sync on or off (**off by default**; SuperWoW file sync is unaffected) | ## How data is shared Each character stores its own record (gold, bags, bank, gear, professions, cooldowns). With SuperWoW all accounts read and write one shared file, `\imports\AdeAlts.txt`, and the newest data per character wins. -Cooldowns (and only cooldowns) are also exchanged through guild / party / raid addon messages, so characters of other players who run the addon (or the old ProfCD Tracker) in your guild or group can appear in your list; remove them with `/ade del` or switch this off with `/ade chat`. +If you turn it on with `/ade chat`, cooldowns (and only cooldowns) are also exchanged through guild / party / raid addon messages (off by default), so characters of other players who run the addon (or the old ProfCD Tracker) in your guild or group can appear in your list; remove them with `/ade del`. ## Notes diff --git a/core.lua b/core.lua index 0b7d750..87b1803 100644 --- a/core.lua +++ b/core.lua @@ -7,7 +7,7 @@ local AA = AdeAlts -- Command: /pcd Minimap button: auto-docked by pfUI's addon button panel. AA.ADDON = "AdeAlts" -AA.VERSION = "1.2.2" +AA.VERSION = "1.2.3" AA.PREFIX = "PCDT" AA.DAY = 86400 AA.RDATA = {} -- recipe database, filled by the data_*.lua files diff --git a/events.lua b/events.lua index f5ea661..d492289 100644 --- a/events.lua +++ b/events.lua @@ -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 | list | sync | scan | status | debug | bags | chat | unignore | export | import | minimap | alert | reset | del ") end