view plugins/sql.lib.lua @ 6498:ce66fe13eebe

prosodyctl: Fix nil global access traceback in `prosodyctl about` (luarocks 2.2.0 no longer uses module())
author Waqas Hussain <waqas20@gmail.com>
date Sun, 19 Oct 2014 03:05:49 -0400
parents 9916f0a2d178
children
line wrap: on
line source

local cache = module:shared("/*/sql.lib/util.sql");

if not cache._M then
	prosody.unlock_globals();
	cache._M = require "util.sql";
	prosody.lock_globals();
end

return cache._M;