# HG changeset patch # User ShadowTheAge # Date 1435343153 -10800 # Node ID f7f4ac66907753f90b6ab693bb4694a49deda236 # Parent 2de6ed94effb417f8b20a8b6f1dbdd39464ed5f4 Patch 6.2.0 and minor bug fix diff -r 2de6ed94effb -r f7f4ac669077 CrossRealmAssist.lua --- 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 diff -r 2de6ed94effb -r f7f4ac669077 CrossRealmAssist.toc --- a/CrossRealmAssist.toc Fri Mar 13 00:04:00 2015 +0300 +++ b/CrossRealmAssist.toc Fri Jun 26 21:25:53 2015 +0300 @@ -1,4 +1,4 @@ -## Interface: 60100 +## Interface: 60200 ## Title: Cross Realm Assist ## Notes: Easy tool for cross-realm hoping ## Author: ShadowTheAge