Software /
code /
prosody-modules
Diff
mod_storage_gdbm/mod_storage_gdbm.lua @ 1593:d9f3c66ea938
mod_storage_gdbm: Use require directly instead of util.import (which is not available in prosodyctl, breaks adduser etc)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Jan 2015 13:04:02 +0100 |
parent | 1570:67fafebdceb7 |
child | 1595:6288591d5edf |
line wrap: on
line diff
--- a/mod_storage_gdbm/mod_storage_gdbm.lua Tue Jan 20 11:02:14 2015 +0000 +++ b/mod_storage_gdbm/mod_storage_gdbm.lua Sun Jan 25 13:04:02 2015 +0100 @@ -9,7 +9,9 @@ local gdbm = require"gdbm"; local path = require"util.paths"; local lfs = require"lfs"; -local serialize, deserialize = import("util.serialization", "serialize", "deserialize"); +local serialization = require"util.serialization"; +local serialize = serialization.serialize; +local deserialize = serialization.deserialize; local base_path = path.resolve_relative_path(prosody.paths.data, module.host); lfs.mkdir(base_path);