View Single Post
01-05-06, 09:15 PM   #55
Devla
A Cobalt Mageweaver
 
Devla's Avatar
AddOn Compiler - Click to view compilations
Join Date: Mar 2005
Posts: 206
When trying to add some fish to my pet's diet, I receive the following error:

Code:
GFW_FeedOMatic\FeedOMatic.lua:1560: bad argument #1 to `find' (string expected, got nil)
The error is referring to the following function which somehow has the ItemLinks all screwy:

Code:
function FOM_IDFromLink(itemLink)
	local _, _, itemID  = string.find(itemLink, "item:(%d+):%d+:%d+:%d+");
	if (tonumber(itemID)) then
		return tonumber(itemID);
	else
		return nil;
	end
end
Thanks for the great mod
__________________
RETIRED Author
  Reply With Quote