File

plugins/sql.lib.lua @ 8160:5566f82ffea4

mod_welcome: Return the pointer to the root of the stanza, fixes a bug similar to #922.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 30 May 2017 20:52:22 +0100
parent 5494:9916f0a2d178
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;