Software /
code /
prosody-modules
Comparison
mod_storage_gdbm/mod_storage_gdbm.lua @ 1760:e72f9eac51c8
mod_storage_(various): Order swapping in 54c8a0cb2996 was backwards
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 May 2015 12:09:47 +0200 |
parent | 1756:c619425dafe7 |
child | 1968:95ad6e68e203 |
comparison
equal
deleted
inserted
replaced
1759:0aeab7234d5e | 1760:e72f9eac51c8 |
---|---|
73 archive.get = keyval.get; | 73 archive.get = keyval.get; |
74 archive.set = keyval.set; | 74 archive.set = keyval.set; |
75 | 75 |
76 function archive:append(username, key, value, when, with) | 76 function archive:append(username, key, value, when, with) |
77 if type(when) ~= "number" then | 77 if type(when) ~= "number" then |
78 value, when, with = when, with, value; | 78 when, with, value = value, when, with; |
79 end | 79 end |
80 | 80 |
81 key = key or uuid(); | 81 key = key or uuid(); |
82 local meta = self:get(username); | 82 local meta = self:get(username); |
83 if not meta then | 83 if not meta then |