Software /
code /
prosody-modules
Diff
mod_storage_gdbm/mod_storage_gdbm.lua @ 1602:3912a53fd4db
mod_storage_gdbm: Get 'after' parameter from correct table
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 07 Feb 2015 22:22:15 +0100 |
parent | 1596:b362e6c00fd1 |
child | 1603:1fbec16996f5 |
line wrap: on
line diff
--- a/mod_storage_gdbm/mod_storage_gdbm.lua Fri Jan 30 12:25:13 2015 +0100 +++ b/mod_storage_gdbm/mod_storage_gdbm.lua Sat Feb 07 22:22:15 2015 +0100 @@ -79,7 +79,7 @@ local meta = self:get(username); local r = query.reverse; local d = r and -1 or 1; - local s = meta[ifelse(r, query.before, meta.after)]; + local s = meta[ifelse(r, query.before, query.after)]; if s then s = s + d; else