plugins/sql.lib.lua
author Kim Alvefur <zash@zash.se>
Sat, 27 Apr 2013 19:44:37 +0200
changeset 5530 d83482fc4a81
parent 5494 9916f0a2d178
permissions -rw-r--r--
moduleapi: in module:provides(), add the name of the module in item._provided_by

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;