aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-19 18:24:09 +0200
committerKim Alvefur <zash@zash.se>2015-05-19 18:24:09 +0200
commit27a5c819f44a16fd8f6dfae24ed53dcc4366ff67 (patch)
tree43d2adbf47d577c599785931c4506503b22e2ed0 /plugins
parentd6f06fa146cb0e7d6baee40a3e7037cdb4f0ab6a (diff)
downloadprosody-27a5c819f44a16fd8f6dfae24ed53dcc4366ff67.tar.gz
prosody-27a5c819f44a16fd8f6dfae24ed53dcc4366ff67.zip
mod_storage_sql2: Change order of arguments to :append to be the same as return values from :find iterator
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql2.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index c02ad42c..aab37697 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -216,9 +216,9 @@ end
local archive_store = {}
archive_store.__index = archive_store
-function archive_store:append(username, key, when, with, value)
- if value == nil then -- COMPAT early versions
- when, with, value, key = key, when, with, value
+function archive_store:append(username, key, value, when, with)
+ if type(when) ~= "number" then
+ value, when, with = when, with, value;
end
local user,store = username,self.store;
return engine:transaction(function()