mod_storage_xmlarchive: Remove compat for old argument order
authorKim Alvefur <zash@zash.se>
Sun, 06 Jan 2019 10:27:55 +0100
changeset 3439 26a549513f02
parent 3438 a6722a35f35e
child 3440 12c7c0d7e1b0
mod_storage_xmlarchive: Remove compat for old argument order
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- 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";