Changeset

293:65fb9ae79014

plugins.archive: Import util.stanza directly and use it
author Kim Alvefur <zash@zash.se>
date Fri, 20 Apr 2012 00:33:46 +0200
parents 292:b674f5ca85d4
children 294:ac039aa3a4ef
files plugins/archive.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/archive.lua	Fri Apr 20 00:33:18 2012 +0200
+++ b/plugins/archive.lua	Fri Apr 20 00:33:46 2012 +0200
@@ -3,13 +3,14 @@
 -- (ie not XEP-0136)
 
 local verse = require "verse";
+local st = require "util.stanza";
 local xmlns_mam = "urn:xmpp:mam:tmp"
 local uuid = require "util.uuid".generate;
 
 function verse.plugins.archive(stream)
 	function stream:query_archive(where, query_params, callback)
 		local queryid = uuid();
-		local query_st = verse.iq{ type="get", to=where }
+		local query_st = st.iq{ type="get", to = where }
 			:tag("query", { xmlns = xmlns_mam, queryid = queryid });
 
 		local params = { "with", "start", "end" };