plugins.xkcd: Remove old comment

Sun, 23 Mar 2014 15:32:21 +0100

author
Kim Alvefur <zash@zash.se>
date
Sun, 23 Mar 2014 15:32:21 +0100
changeset 108
70db447e3669
parent 107
441ec8dcdfde
child 109
1c94ed0bfdec

plugins.xkcd: Remove old comment

plugins/xkcd.lua file | annotate | diff | comparison | revisions
--- 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");

mercurial