diff -r b674f5ca85d4 -r 65fb9ae79014 plugins/archive.lua --- 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" };