Software /
code /
prosody-modules
Diff
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 |
parent | 2600:9ec8289f6bb2 |
child | 2602:324a6a3b730b |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Mar 06 00:51:28 2017 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Mar 06 00:52:27 2017 +0100 @@ -89,7 +89,8 @@ end local stream_sess = { notopen = true }; - local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }); + local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }; + local stream = new_stream(stream_sess, stream_callbacks); local dates = dm.list_load(username, module.host, self.store) or empty; local function reset_stream() stream:reset();