Mercurial > prosody-modules
comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2601:ba5757dc883d
mod_storage_xmlarchive: Move XML callback table into a variable to break long line [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 06 Mar 2017 00:52:27 +0100 |
| parents | 9ec8289f6bb2 |
| children | 324a6a3b730b |
comparison
equal
deleted
inserted
replaced
| 2600:9ec8289f6bb2 | 2601:ba5757dc883d |
|---|---|
| 87 assert(not result, "Multiple items in chunk"); | 87 assert(not result, "Multiple items in chunk"); |
| 88 result = stanza; | 88 result = stanza; |
| 89 end | 89 end |
| 90 | 90 |
| 91 local stream_sess = { notopen = true }; | 91 local stream_sess = { notopen = true }; |
| 92 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }); | 92 local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }; |
| 93 local stream = new_stream(stream_sess, stream_callbacks); | |
| 93 local dates = dm.list_load(username, module.host, self.store) or empty; | 94 local dates = dm.list_load(username, module.host, self.store) or empty; |
| 94 local function reset_stream() | 95 local function reset_stream() |
| 95 stream:reset(); | 96 stream:reset(); |
| 96 stream_sess.notopen = true; | 97 stream_sess.notopen = true; |
| 97 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); | 98 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); |
