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
commitf4b4f1020ae91754d915d296749510031e7c784c (patch)
tree301469f56f80db46ef2a93fdbcae6a7500d5c343
parent720a6a5deb52fbc3944bb7a9a5f46a3dd33f46f8 (diff)
downloadprosody-f4b4f1020ae91754d915d296749510031e7c784c.tar.gz
prosody-f4b4f1020ae91754d915d296749510031e7c784c.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()