Mercurial > wow > crossrealmassist
changeset 19:f7f4ac669077 beta-0.62
Patch 6.2.0 and minor bug fix
| author | ShadowTheAge |
|---|---|
| date | Fri, 26 Jun 2015 21:25:53 +0300 |
| parents | 2de6ed94effb |
| children | 43cddaece0d2 |
| files | CrossRealmAssist.lua CrossRealmAssist.toc |
| diffstat | 2 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/CrossRealmAssist.lua Fri Mar 13 00:04:00 2015 +0300 +++ b/CrossRealmAssist.lua Fri Jun 26 21:25:53 2015 +0300 @@ -679,10 +679,12 @@ local rcount = 0; local stat = {}; local pcount = 0; - for realm,count in pairs(realms) do - table.insert(stat,{realm=realm,count=count}) - rcount = rcount + 1; - pcount = pcount + count; + if realms then + for realm,count in pairs(realms) do + table.insert(stat,{realm=realm,count=count}) + rcount = rcount + 1; + pcount = pcount + count; + end end if rcount > 1 then table.sort(stat, function(a,b) return a.count > b.count end) @@ -859,14 +861,14 @@ function addon:UpdateAutoButtonStatus() if not btQuick then return end btQuick:Enable() - if not hintShown and db.global.quickJoinHint then - action = ShowQuickHint; - elseif IsInGroup() then + if IsInGroup() then action = LeaveGroup; elseif C_LFGList.GetNumApplications() > 0 then action = CancelJoin; elseif lfgScanInProgress then action = Wait + elseif not hintShown and db.global.quickJoinHint then + action = ShowQuickHint; else local group = QuickJoin.findGroup(); if group then
