plugins/trac.lua

changeset 115
6498ca5ed831
parent 43
dd99a0dde016
equal deleted inserted replaced
114:d11cf84975c5 115:6498ca5ed831
5 5
6 function riddim.plugins.trac(bot) 6 function riddim.plugins.trac(bot)
7 local trac = bot.config.trac; 7 local trac = bot.config.trac;
8 if not trac then return end 8 if not trac then return end
9 9
10 require "net.httpclient_listener";
11 local http = require("net.http"); 10 local http = require("net.http");
12 11
13 bot:hook("commands/ticket", function(command) 12 bot:hook("commands/ticket", function(command)
14 if not command.param then return end 13 if not command.param then return end
15 local bug_id = s_match(command.param, "%d+"); 14 local bug_id = s_match(command.param, "%d+");

mercurial