view plugins/sql.lib.lua @ 6241:6b4ff34dc8ea

plugins/muc/mod_muc: Use module:shared instead of save/restore
author daurnimator <quae@daurnimator.com>
date Tue, 29 Apr 2014 17:18:14 -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;