Comparison

plugins/archive.lua @ 292:b674f5ca85d4

plugins.archive: Add local verse
author Kim Alvefur <zash@zash.se>
date Fri, 20 Apr 2012 00:33:18 +0200
parent 291:b78137f5118e
child 293:65fb9ae79014
comparison
equal deleted inserted replaced
291:b78137f5118e 292:b674f5ca85d4
1 -- This implements XEP-0313: Message Archive Management 1 -- This implements XEP-0313: Message Archive Management
2 -- http://xmpp.org/extensions/xep-0313.html 2 -- http://xmpp.org/extensions/xep-0313.html
3 -- (ie not XEP-0136) 3 -- (ie not XEP-0136)
4 4
5 local verse = require "verse";
5 local xmlns_mam = "urn:xmpp:mam:tmp" 6 local xmlns_mam = "urn:xmpp:mam:tmp"
6 local uuid = require "util.uuid".generate; 7 local uuid = require "util.uuid".generate;
7 8
8 function verse.plugins.archive(stream) 9 function verse.plugins.archive(stream)
9 function stream:query_archive(where, query_params, callback) 10 function stream:query_archive(where, query_params, callback)