Diff

mod_group_bookmarks/mod_group_bookmarks.lua @ 3259:6824a1f3d8c0

mod_group_bookmarks: Remove duplicated requires.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 24 Aug 2018 19:29:34 +0200
parent 1343:7dbde05b48a9
child 3260:9bb317400c4c
line wrap: on
line diff
--- a/mod_group_bookmarks/mod_group_bookmarks.lua	Fri Aug 24 16:28:48 2018 +0200
+++ b/mod_group_bookmarks/mod_group_bookmarks.lua	Fri Aug 24 19:29:34 2018 +0200
@@ -8,9 +8,9 @@
 
 
 local st = require "util.stanza"
+local dm_load = require "util.datamanager".load
 
-local datamanager = require "util.datamanager"
-local jid, datamanager = require "util.jid", require "util.datamanager";
+local jid = require "util.jid";
 local jid_bare, jid_prep, jid_split = jid.bare, jid.prep, jid.split;
 
 local module_host = module:get_host();
@@ -49,7 +49,7 @@
 	if #query.tags == 1 then
 		local tag = query.tags[1];
 		local key = tag.name..":"..tag.attr.xmlns;
-		local data, err = datamanager.load(origin.username, origin.host, "private");
+		local data, err = dm_load(origin.username, origin.host, "private");
 		if err then
 			origin.send(st.error_reply(stanza, "wait", "internal-server-error"));
 			return true;