Diff

plugins/mod_storage_memory.lua @ 9533:00a8e627854e

mod_storage_memory: Remove compat for very early argument order
author Kim Alvefur <zash@zash.se>
date Sun, 21 Oct 2018 17:58:50 +0200
parent 9468:bd5e4485a245
child 9534:b301f7edf346
line wrap: on
line diff
--- a/plugins/mod_storage_memory.lua	Sun Oct 21 16:18:10 2018 +0100
+++ b/plugins/mod_storage_memory.lua	Sun Oct 21 17:58:50 2018 +0200
@@ -42,9 +42,6 @@
 archive_store.__index = archive_store;
 
 function archive_store:append(username, key, value, when, with)
-	if type(when) ~= "number" then
-		when, with, value = value, when, with;
-	end
 	if is_stanza(value) then
 		value = st.preserialize(value);
 		value = envload("return xml"..serialize(value), "=(stanza)", { xml = st.deserialize })