comparison 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
parents 7dbde05b48a9
children 9bb317400c4c
comparison
equal deleted inserted replaced
3258:85e3117b2b60 3259:6824a1f3d8c0
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 9
10 local st = require "util.stanza" 10 local st = require "util.stanza"
11 local dm_load = require "util.datamanager".load
11 12
12 local datamanager = require "util.datamanager" 13 local jid = require "util.jid";
13 local jid, datamanager = require "util.jid", require "util.datamanager";
14 local jid_bare, jid_prep, jid_split = jid.bare, jid.prep, jid.split; 14 local jid_bare, jid_prep, jid_split = jid.bare, jid.prep, jid.split;
15 15
16 local module_host = module:get_host(); 16 local module_host = module:get_host();
17 17
18 local rooms; 18 local rooms;
47 local type = stanza.attr.type; 47 local type = stanza.attr.type;
48 local query = stanza.tags[1]; 48 local query = stanza.tags[1];
49 if #query.tags == 1 then 49 if #query.tags == 1 then
50 local tag = query.tags[1]; 50 local tag = query.tags[1];
51 local key = tag.name..":"..tag.attr.xmlns; 51 local key = tag.name..":"..tag.attr.xmlns;
52 local data, err = datamanager.load(origin.username, origin.host, "private"); 52 local data, err = dm_load(origin.username, origin.host, "private");
53 if err then 53 if err then
54 origin.send(st.error_reply(stanza, "wait", "internal-server-error")); 54 origin.send(st.error_reply(stanza, "wait", "internal-server-error"));
55 return true; 55 return true;
56 end 56 end
57 if stanza.attr.type == "get" then 57 if stanza.attr.type == "get" then