Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_presence.lua Fri Mar 22 15:16:22 2013 +0000 +++ b/plugins/mod_presence.lua Sat Mar 23 01:27:16 2013 +0100 @@ -19,7 +19,9 @@ local jid_split = require "util.jid".split; local jid_bare = require "util.jid".bare; local datetime = require "util.datetime"; -local hosts = hosts; +local hosts = prosody.hosts; +local bare_sessions = prosody.bare_sessions; +local full_sessions = prosody.full_sessions; local NULL = {}; local rostermanager = require "core.rostermanager";