comparison mod_track_muc_joins/mod_track_muc_joins.lua @ 2085:8cb8004091f8

mod_track_muc_joins: Add missing imports (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Wed, 16 Mar 2016 11:42:40 +0100
parents 73096d8d924c
children 3fcac143fe0b
comparison
equal deleted inserted replaced
2084:9d43095d915f 2085:8cb8004091f8
1 local jid_bare = require "util.jid".bare;
2 local sessions = prosody.full_sessions;
1 3
2 module:hook("presence/full", function (event) 4 module:hook("presence/full", function (event)
3 local stanza = event.stanza; 5 local stanza = event.stanza;
4 local session = sessions[stanza.attr.to]; 6 local session = sessions[stanza.attr.to];
5 if not session then return end; 7 if not session then return end;