At 1228932410 time_t, Leon Winter wrote: > + table.foreach(config.mapping, function(i, obj) > + local filter, preset, s = obj[1], obj[2], 0 > + if filter.urgency and filter.urgency ~= hints.urgency then return end > + if filter.category and filter.category ~= hints.category then return > end > + if filter.appname and filter.appname ~= appname then return end > + table.foreach(filter, function(j, el) s = s + 1 end) > + if s > score then > + score = s > + args.preset = preset > + end > + end)
Leon, I'd really suggest to use a pairs() loop. -- Julien Danjou // ᐰ <[EMAIL PROTECTED]> http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
signature.asc
Description: Digital signature
