Mercurial > wow > inventory
changeset 207:5d6b3d116b80
Queueing without a profession open should no longer spam your chat window with ?No tradeskill window detected.? messages.
author | Zerotorescue |
---|---|
date | Sat, 05 Feb 2011 20:01:57 +0100 |
parents | 5d13830e8b0d |
children | 8cecfea6a254 |
files | Modules/Queue.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Modules/Queue.lua Sat Feb 05 20:01:30 2011 +0100 +++ b/Modules/Queue.lua Sat Feb 05 20:01:57 2011 +0100 @@ -419,6 +419,11 @@ -- Prepare a table with all possible tradeskill craftables local craftables = self:GetTradeskillCraftables(); + if not craftables then + addon:Print("No tradeskill window detected. Please open a profession before trying to queue.", addon.Colors.Red); + return; + end + -- Forget old queue twipe(queue); twipe(skipped); @@ -444,7 +449,7 @@ end if not craftables then - addon:Print("No tradeskill window detected.", addon.Colors.Red); + addon:Print("No tradeskill window detected. Please open a profession before trying to queue.", addon.Colors.Red); return; elseif not addon.db.profile.groups[groupName] then addon:Print(sformat("Tried to queue items from a group named \"%s\", but no such group exists.", groupName), addon.Colors.Red);