plugins/archive.lua

changeset 292
b674f5ca85d4
parent 291
b78137f5118e
child 293
65fb9ae79014
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)

mercurial