Software /
code /
prosody-modules
Comparison
mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1763:cf3ee2eca46d
mod_storage_xmlarchive: Remove leftover debug code
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 May 2015 14:24:21 +0200 |
parent | 1760:e72f9eac51c8 |
child | 1764:a077dcf1bb36 |
comparison
equal
deleted
inserted
replaced
1762:e6c7fe1be6cd | 1763:cf3ee2eca46d |
---|---|
21 end); | 21 end); |
22 | 22 |
23 local archive = {}; | 23 local archive = {}; |
24 local archive_mt = { __index = archive }; | 24 local archive_mt = { __index = archive }; |
25 | 25 |
26 local s = require"util.serialization".new("debug").serialize; | |
27 function archive:append(username, _, data, when, with) | 26 function archive:append(username, _, data, when, with) |
28 if type(when) ~= "number" then | 27 if type(when) ~= "number" then |
29 when, with, data = data, when, with; | 28 when, with, data = data, when, with; |
30 end | 29 end |
31 if getmetatable(data) ~= st.stanza_mt then | 30 if getmetatable(data) ~= st.stanza_mt then |