# HG changeset patch # User Kim Alvefur # Date 1289321864 -3600 # Node ID dd99a0dde0168b25ff575237970f815f9f0d4552 # Parent 5ee2eccabcc91fc8e0dbdd4a7ede3d0a0c4b5fcd plugins.trac: Remove curl hack diff -r 5ee2eccabcc9 -r dd99a0dde016 plugins/trac.lua --- 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