fix sending craft links when WIM is not installed;
This commit is contained in:
+3
-1
@@ -3598,14 +3598,16 @@ function AtlasLoot_SayItemReagents(id, color, name, safe)
|
|||||||
local tListActivity = {}
|
local tListActivity = {}
|
||||||
local tCount = 0
|
local tCount = 0
|
||||||
|
|
||||||
|
if (WIM_IconItems and WIM_Icon_SortByActivity) then
|
||||||
for key in WIM_IconItems do
|
for key in WIM_IconItems do
|
||||||
table.insert(tListActivity, key)
|
table.insert(tListActivity, key)
|
||||||
tCount = tCount + 1
|
tCount = tCount + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
table.sort(tListActivity, WIM_Icon_SortByActivity)
|
table.sort(tListActivity, WIM_Icon_SortByActivity)
|
||||||
|
end
|
||||||
|
|
||||||
if tListActivity[1] and WIM_Windows[tListActivity[1]].is_visible then
|
if tListActivity[1] and WIM_Windows and WIM_Windows[tListActivity[1]].is_visible then
|
||||||
channel = "WHISPER";
|
channel = "WHISPER";
|
||||||
chatnumber = tListActivity[1];
|
chatnumber = tListActivity[1];
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user