plugins.trac: Remove curl hack

Tue, 09 Nov 2010 17:57:44 +0100

author
Kim Alvefur <zash@zash.se>
date
Tue, 09 Nov 2010 17:57:44 +0100
changeset 43
dd99a0dde016
parent 42
5ee2eccabcc9
child 44
8e508f08cc7f

plugins.trac: Remove curl hack

plugins/trac.lua file | annotate | diff | comparison | revisions
--- a/plugins/trac.lua	Tue Nov 09 03:19:19 2010 +0100
+++ b/plugins/trac.lua	Tue Nov 09 17:57:44 2010 +0100
@@ -7,12 +7,8 @@
 	local trac = bot.config.trac;
 	if not trac then return end
 
-	--require "net.httpclient_listener";
-	local http = --require("net.http");
-	{ request = function(url, iduno, callback) 
-		local data = io.popen("curl -s " .. url):read("*a");
-		return callback(data, 200);
-	end; }
+	require "net.httpclient_listener";
+	local http = require("net.http");
 
 	bot:hook("commands/ticket", function(command)
 		if not command.param then return end

mercurial