Software /
code /
prosody
Comparison
plugins/mod_disco.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 12642:9061f9621330 |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
4 -- | 4 -- |
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
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 local get_children = require "core.hostmanager".get_children; | 9 local get_children = require "prosody.core.hostmanager".get_children; |
10 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; | 10 local is_contact_subscribed = require "prosody.core.rostermanager".is_contact_subscribed; |
11 local jid_split = require "util.jid".split; | 11 local jid_split = require "prosody.util.jid".split; |
12 local jid_bare = require "util.jid".bare; | 12 local jid_bare = require "prosody.util.jid".bare; |
13 local st = require "util.stanza" | 13 local st = require "prosody.util.stanza" |
14 local calculate_hash = require "util.caps".calculate_hash; | 14 local calculate_hash = require "prosody.util.caps".calculate_hash; |
15 | 15 |
16 local expose_admins = module:get_option_boolean("disco_expose_admins", false); | 16 local expose_admins = module:get_option_boolean("disco_expose_admins", false); |
17 | 17 |
18 local disco_items = module:get_option_array("disco_items", {}) | 18 local disco_items = module:get_option_array("disco_items", {}) |
19 do -- validate disco_items | 19 do -- validate disco_items |