Tue, 09 Nov 2010 17:57:44 +0100
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