Diff

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2602:324a6a3b730b

mod_storage_xmlarchive: Rename variable, we can afford to use the full word 'session'
author Kim Alvefur <zash@zash.se>
date Mon, 06 Mar 2017 00:53:01 +0100
parent 2601:ba5757dc883d
child 2632:995d4d9f5d89
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Mar 06 00:52:27 2017 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Mar 06 00:53:01 2017 +0100
@@ -88,15 +88,15 @@
 		result = stanza;
 	end
 
-	local stream_sess = { notopen = true };
+	local stream_session = { notopen = true };
 	local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" };
-	local stream = new_stream(stream_sess, stream_callbacks);
+	local stream = new_stream(stream_session, stream_callbacks);
 	local dates = dm.list_load(username, module.host, self.store) or empty;
 	local function reset_stream()
 		stream:reset();
-		stream_sess.notopen = true;
+		stream_session.notopen = true;
 		stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
-		stream_sess.notopen = nil;
+		stream_session.notopen = nil;
 	end
 	reset_stream();