Reddit: results-Fehler, statt Connection

This commit is contained in:
Andreas Bielawski 2016-07-15 16:38:09 +02:00
parent 86a500e23c
commit 18b7a66638

View File

@ -66,7 +66,7 @@ function reddit:action(msg, config)
end
local jstr, res = https.request(url)
if res ~= 200 then
utilities.send_reply(self, msg, config.errors.connection)
utilities.send_reply(self, msg, config.errors.results)
else
local jdat = JSON.decode(jstr)
if #jdat.data.children == 0 then