# HG changeset patch # User Kim Alvefur # Date 1413912477 -7200 # Node ID 6498ca5ed83151614208b5fcbe96bca88269e171 # Parent d11cf84975c5ab3eb2ad9c4bdba908f4ee339f8d plugins.{trac,urltitle,xeps,xkcd,xkcd2,youtube}: Remove net.httpclient_listener, no longer required since verse:8e9f44ecb95b diff -r d11cf84975c5 -r 6498ca5ed831 plugins/trac.lua --- a/plugins/trac.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/trac.lua Tue Oct 21 19:27:57 2014 +0200 @@ -7,7 +7,6 @@ local trac = bot.config.trac; if not trac then return end - require "net.httpclient_listener"; local http = require("net.http"); bot:hook("commands/ticket", function(command) diff -r d11cf84975c5 -r 6498ca5ed831 plugins/urltitle.lua --- a/plugins/urltitle.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/urltitle.lua Tue Oct 21 19:27:57 2014 +0200 @@ -1,5 +1,4 @@ function riddim.plugins.urltitle(bot) - require "net.httpclient_listener"; local http = require "net.http"; local function handler(message) diff -r d11cf84975c5 -r 6498ca5ed831 plugins/xeps.lua --- a/plugins/xeps.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/xeps.lua Tue Oct 21 19:27:57 2014 +0200 @@ -2,7 +2,6 @@ local xeps, xeps_short = {}, {}; function riddim.plugins.xeps(bot) - require "net.httpclient_listener"; local http = require("net.http"); bot:hook("commands/xep", function(command) -- Cache XEP list for an hour diff -r d11cf84975c5 -r 6498ca5ed831 plugins/xkcd.lua --- a/plugins/xkcd.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/xkcd.lua Tue Oct 21 19:27:57 2014 +0200 @@ -4,7 +4,6 @@ local handle_xkcd_command; function riddim.plugins.xkcd(bot) - require "net.httpclient_listener"; 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 diff -r d11cf84975c5 -r 6498ca5ed831 plugins/xkcd2.lua --- a/plugins/xkcd2.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/xkcd2.lua Tue Oct 21 19:27:57 2014 +0200 @@ -1,5 +1,4 @@ -require "net.httpclient_listener"; local http = require("net.http"); local json = require"util.json"; local bare_jid = require "util.jid".bare; diff -r d11cf84975c5 -r 6498ca5ed831 plugins/youtube.lua --- a/plugins/youtube.lua Tue Oct 21 17:53:04 2014 +0200 +++ b/plugins/youtube.lua Tue Oct 21 19:27:57 2014 +0200 @@ -2,7 +2,6 @@ -- -- This project is MIT/X11 licensed. -- -require("net.httpclient_listener"); local http = require("net.http"); local st = require("util.stanza"); local tostring = tostring;