Sorry to necro this, but I Found a solution. I've just added to following code to the fishing.lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (config.useBait and getPlayerItemCount(cid, 3976) < config.baitCount) then
doPlayerSendTextMessage(cid...