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