mod_storage_xmlarchive/mod_storage_xmlarchive.lua
changeset 3439 26a549513f02
parent 2942 f000ba14d531
child 3456 0c539092aa75
--- 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";