Software /
code /
prosody-modules
Comparison
mod_track_muc_joins/mod_track_muc_joins.lua @ 2302:12249570352f
mod_track_muc_joins: Use correct number in comment
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 22 Sep 2016 14:35:43 +0200 |
parent | 2274:43e647b8dd9f |
child | 2335:eb456fd639d2 |
comparison
equal
deleted
inserted
replaced
2301:d7c014f91189 | 2302:12249570352f |
---|---|
26 | 26 |
27 if joined and not session.directed or not session.directed[from_jid] then | 27 if joined and not session.directed or not session.directed[from_jid] then |
28 return; -- Never sent presence there, can't be a MUC join | 28 return; -- Never sent presence there, can't be a MUC join |
29 end | 29 end |
30 | 30 |
31 -- Check for status code 100, meaning it's their own reflected presence | 31 -- Check for status code 110, meaning it's their own reflected presence |
32 for status in muc_x:childtags("status") do | 32 for status in muc_x:childtags("status") do |
33 log("debug", "Status code %d", status.attr.code); | 33 log("debug", "Status code %d", status.attr.code); |
34 if status.attr.code == "110" then | 34 if status.attr.code == "110" then |
35 log("debug", "%s room %s", joined and "Joined" or "Left", room); | 35 log("debug", "%s room %s", joined and "Joined" or "Left", room); |
36 local rooms = session.rooms_joined; | 36 local rooms = session.rooms_joined; |