Software /
code /
prosody
Comparison
plugins/mod_iq.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 | 4966:073eff2853a1 |
child | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
5368:ab31dbb3a415 | 5370:7838acadb0fa |
---|---|
7 -- | 7 -- |
8 | 8 |
9 | 9 |
10 local st = require "util.stanza"; | 10 local st = require "util.stanza"; |
11 | 11 |
12 local full_sessions = full_sessions; | 12 local full_sessions = prosody.full_sessions; |
13 | 13 |
14 if module:get_host_type() == "local" then | 14 if module:get_host_type() == "local" then |
15 module:hook("iq/full", function(data) | 15 module:hook("iq/full", function(data) |
16 -- IQ to full JID recieved | 16 -- IQ to full JID recieved |
17 local origin, stanza = data.origin, data.stanza; | 17 local origin, stanza = data.origin, data.stanza; |