# HG changeset patch # User Florian Zeitz # Date 1283120294 -7200 # Node ID 7e79b03f10e1c26fb5a00f11ce0c8abc0049fe8c # Parent 0cafbe17c0aa1dbf3f034f99643b525594093223 plugins.xeps: Use net.http diff -r 0cafbe17c0aa -r 7e79b03f10e1 plugins/xeps.lua --- a/plugins/xeps.lua Mon Jul 26 11:34:13 2010 +0100 +++ b/plugins/xeps.lua Mon Aug 30 00:18:14 2010 +0200 @@ -2,8 +2,8 @@ local xeps = {}; function riddim.plugins.xeps(bot) - bot.stream:add_plugin("http"); - local http = verse.http; + require "net.httpclient_listener"; + local http = require("net.http"); bot:hook("commands/xep", function(command) -- Cache XEP list for an hour if os.difftime(os.time(), xeps_updated_at) > (60 * 60) then -- Not refreshed within 1 hour