comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1793:152439ca92ee

mod_storage_xmlarchive: Remove redundant stream header
author Kim Alvefur <zash@zash.se>
date Thu, 27 Aug 2015 12:14:40 +0200
parents 1a7867eaac9e
children 1b08597b5e6f
comparison
equal deleted inserted replaced
1792:8e19b943c2cd 1793:152439ca92ee
78 end 78 end
79 79
80 local stream_sess = { notopen = true }; 80 local stream_sess = { notopen = true };
81 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"}); 81 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"});
82 local dates = dm.list_load(username, module.host, self.store) or empty; 82 local dates = dm.list_load(username, module.host, self.store) or empty;
83 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
84 local function reset_stream() 83 local function reset_stream()
85 stream:reset(); 84 stream:reset();
86 stream_sess.notopen = true; 85 stream_sess.notopen = true;
87 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); 86 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
88 stream_sess.notopen = nil; 87 stream_sess.notopen = nil;