aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-21 12:11:08 +0200
committerKim Alvefur <zash@zash.se>2015-05-21 12:11:08 +0200
commit1c3f1e910f9be92570e45cd09f5a0063699748c7 (patch)
tree301469f56f80db46ef2a93fdbcae6a7500d5c343
parentc913917942ee16c0d4472d3ed344b506d1bfa50c (diff)
downloadprosody-1c3f1e910f9be92570e45cd09f5a0063699748c7.tar.gz
prosody-1c3f1e910f9be92570e45cd09f5a0063699748c7.zip
mod_storage_sql2: Fix argument compat thing from 41725f3df3cc, it was backwards
-rw-r--r--plugins/mod_storage_sql2.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index 21299f33..e15668af 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -221,7 +221,7 @@ archive_store.caps = {
archive_store.__index = archive_store
function archive_store:append(username, key, value, when, with)
if type(when) ~= "number" then
- value, when, with = when, with, value;
+ when, with, value = value, when, with;
end
local user,store = username,self.store;
return engine:transaction(function()