Software /
code /
prosody-modules
Diff
mod_pubsub_feeds/mod_pubsub_feeds.lua @ 3280:645c4f14e03d
mod_pubsub_feeds: Fix syntax error
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Aug 2018 14:25:30 +0200 |
parent | 3279:e6b25054c110 |
child | 3281:27cc66bf918b |
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Aug 25 14:14:27 2018 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Sat Aug 25 14:25:30 2018 +0200 @@ -162,7 +162,7 @@ item.last_update = time(); elseif code == 301 and resp.headers.location then module:log("info", "Feed %q has moved to %q", item.url, resp.headers.location); - elseif code == < 100 then + elseif code <= 100 then module:log("error", "Error fetching %q: %q[%d]", item.url, data, code); else module:log("debug", "Unhandled status code %d when fetching %q", code, item.url);