Software /
code /
prosody
Comparison
plugins/mod_privacy.lua @ 5370:7838acadb0fa
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 01:27:16 +0100 |
parent | 4232:582fe508214f |
child | 5382:214c32e10734 |
comparison
equal
deleted
inserted
replaced
5368:ab31dbb3a415 | 5370:7838acadb0fa |
---|---|
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 module:add_feature("jabber:iq:privacy"); | 10 module:add_feature("jabber:iq:privacy"); |
11 | 11 |
12 local prosody = prosody; | |
13 local st = require "util.stanza"; | 12 local st = require "util.stanza"; |
14 local datamanager = require "util.datamanager"; | 13 local datamanager = require "util.datamanager"; |
15 local bare_sessions, full_sessions = bare_sessions, full_sessions; | 14 local bare_sessions, full_sessions = prosody.bare_sessions, prosody.full_sessions; |
16 local util_Jid = require "util.jid"; | 15 local util_Jid = require "util.jid"; |
17 local jid_bare = util_Jid.bare; | 16 local jid_bare = util_Jid.bare; |
18 local jid_split, jid_join = util_Jid.split, util_Jid.join; | 17 local jid_split, jid_join = util_Jid.split, util_Jid.join; |
19 local load_roster = require "core.rostermanager".load_roster; | 18 local load_roster = require "core.rostermanager".load_roster; |
20 local to_number = tonumber; | 19 local to_number = tonumber; |