comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2289:aa984980a4dc

mod_storage_xmlarchive: Include the missing append_raw() for 0.9 compatibility
author Kim Alvefur <zash@zash.se>
date Tue, 23 Aug 2016 17:54:00 +0200
parents b34f4591366a
children 4786bf0a9334
comparison
equal deleted inserted replaced
2288:827f01cbf6ba 2289:aa984980a4dc
9 local hmac_sha256 = require"util.hashes".hmac_sha256; 9 local hmac_sha256 = require"util.hashes".hmac_sha256;
10 local st = require"util.stanza"; 10 local st = require"util.stanza";
11 local dt = require"util.datetime"; 11 local dt = require"util.datetime";
12 local new_stream = require "util.xmppstream".new; 12 local new_stream = require "util.xmppstream".new;
13 local empty = {}; 13 local empty = {};
14
15 if not dm.append_raw then
16 module:require"datamanager_append_raw";
17 end
14 18
15 local archive = {}; 19 local archive = {};
16 local archive_mt = { __index = archive }; 20 local archive_mt = { __index = archive };
17 21
18 function archive:append(username, _, data, when, with) 22 function archive:append(username, _, data, when, with)