plugins.xeps: Use net.http

Mon, 30 Aug 2010 00:18:14 +0200

author
Florian Zeitz <florob@babelmonkeys.de>
date
Mon, 30 Aug 2010 00:18:14 +0200
changeset 32
7e79b03f10e1
parent 31
0cafbe17c0aa
child 33
37caf7bd2021

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

mercurial