Mon, 30 Aug 2010 00:18:14 +0200
plugins.xeps: Use net.http
plugins/xeps.lua | file | annotate | diff | comparison | revisions |
--- 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