Software /
code /
prosody-modules
Diff
mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1738:b3f048af2dfe
mod_storage_xmlarchive: The last :seek() should return something truish, if not, don't ignore
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 May 2015 02:33:43 +0200 |
parent | 1730:e02af2b32f30 |
child | 1739:940a4ab75cec |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sun May 17 17:17:26 2015 +0200 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon May 18 02:33:43 2015 +0200 @@ -12,8 +12,7 @@ if not ok then return ok, msg; end - f:seek("set", offset); - return true; + return f:seek("set", offset); end; pcall(function() local pposix = require "util.pposix";