# HG changeset patch # User Kim Alvefur # Date 1395585141 -3600 # Node ID 70db447e3669af4c73346f1aa34b8934c161f68e # Parent 441ec8dcdfde54afe7782b80af626db57a4a969f plugins.xkcd: Remove old comment diff -r 441ec8dcdfde -r 70db447e3669 plugins/xkcd.lua --- a/plugins/xkcd.lua Sun Mar 23 15:02:39 2014 +0100 +++ b/plugins/xkcd.lua Sun Mar 23 15:32:21 2014 +0100 @@ -8,9 +8,7 @@ local http = require("net.http"); bot:hook("commands/xkcd", function(command) if os.difftime(os.time(), xkcd_list_updated_at) > (3 * 60 * 60) then -- Not refreshed within 3 hours - --COMPAT We could have saved 6 bytes here, but Microsoft apparently hates %T, so you got this gigantic comment instead. - -- http.request('http://xkcd.com/archive/', { headers = { ["If-Modified-Since"] = os.date("!%a, %d %b %Y %T %Z", xkcd_list_updated_at or 0) } }, function (data, code) - http.request('http://xkcd.com/archive/', { headers = { ["If-Modified-Since"] = os.date("!%a, %d %b %Y %H:%M:%S %Z", xkcd_list_updated_at or 0) } }, function (data, code) + http.request('http://xkcd.com/archive/', { headers = { ["If-Modified-Since"] = os.date("!%a, %d %b %Y %H:%M:%S %Z", xkcd_list_updated_at) } }, function (data, code) if code == 200 then xkcd_list_updated_at = os.time(); print("debug", "got "..(#data or 0).." bytes of data");