From cf7a0c252addd9f4ccb80883672139b47c7e55a8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 21 Oct 2018 17:58:50 +0200 Subject: mod_storage_memory: Remove compat for very early argument order --- plugins/mod_storage_memory.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/mod_storage_memory.lua b/plugins/mod_storage_memory.lua index ec29fba6..20135d86 100644 --- a/plugins/mod_storage_memory.lua +++ b/plugins/mod_storage_memory.lua @@ -42,9 +42,6 @@ local archive_store = {}; 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 }) -- cgit v1.2.3