diff mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 3435:26a549513f02

mod_storage_xmlarchive: Remove compat for old argument order
author Kim Alvefur <zash@zash.se>
date Sun, 06 Jan 2019 10:27:55 +0100
parents f000ba14d531
children 0c539092aa75
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun Jan 06 10:27:16 2019 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun Jan 06 10:27:55 2019 +0100
@@ -25,9 +25,6 @@
 end
 
 function archive:append(username, _, data, when, with)
-	if type(when) ~= "number" then
-		when, with, data = data, when, with;
-	end
 	if not is_stanza(data) then
 		module:log("error", "Attempt to store non-stanza object, traceback: %s", debug.traceback());
 		return nil, "unsupported-datatype";