Gabi, could you update this module to use the new inventory functions if you havent already, the slot indexes are correct now so the -1 will break things :) this code will do the trick.
Code:
local eq = Inventory("type=" ..tostring(FFXIV.INVENTORYTYPE.INV_EQUIPPED))
if (eq) then
local i,e = next (eq)
while ( i and e ) do
d("R: "..e.name .. " " ..tostring(e.slot))
e:Repair()
i,e = next (eq,i)
end
end