Software /
code /
prosody
Comparison
plugins/mod_presence.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 | 5297:7453245f16e7 |
child | 5416:0ba3a49d3863 |
comparison
equal
deleted
inserted
replaced
5368:ab31dbb3a415 | 5370:7838acadb0fa |
---|---|
17 local core_post_stanza = prosody.core_post_stanza; | 17 local core_post_stanza = prosody.core_post_stanza; |
18 local st = require "util.stanza"; | 18 local st = require "util.stanza"; |
19 local jid_split = require "util.jid".split; | 19 local jid_split = require "util.jid".split; |
20 local jid_bare = require "util.jid".bare; | 20 local jid_bare = require "util.jid".bare; |
21 local datetime = require "util.datetime"; | 21 local datetime = require "util.datetime"; |
22 local hosts = hosts; | 22 local hosts = prosody.hosts; |
23 local bare_sessions = prosody.bare_sessions; | |
24 local full_sessions = prosody.full_sessions; | |
23 local NULL = {}; | 25 local NULL = {}; |
24 | 26 |
25 local rostermanager = require "core.rostermanager"; | 27 local rostermanager = require "core.rostermanager"; |
26 local sessionmanager = require "core.sessionmanager"; | 28 local sessionmanager = require "core.sessionmanager"; |
27 | 29 |