Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 6249:2420e308f64a
plugins/muc/muc: Always send occupant list to joining sessions
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Mon, 19 May 2014 13:40:24 -0400 |
parent | 6240:641756a6a5f7 |
child | 6250:454ef19e7925 |
comparison
equal
deleted
inserted
replaced
6248:4569b8cbd269 | 6249:2420e308f64a |
---|---|
451 if orig_occupant == nil and self:get_whois() == "anyone" then | 451 if orig_occupant == nil and self:get_whois() == "anyone" then |
452 dest_x:tag("status", {code = "100"}):up(); | 452 dest_x:tag("status", {code = "100"}):up(); |
453 end | 453 end |
454 self:save_occupant(dest_occupant); | 454 self:save_occupant(dest_occupant); |
455 | 455 |
456 if orig_occupant == nil and is_first_dest_session then | 456 if orig_occupant == nil then |
457 -- Send occupant list to newly joined user | 457 -- Send occupant list to newly joined user |
458 self:send_occupant_list(real_jid, function(nick, occupant) | 458 self:send_occupant_list(real_jid, function(nick, occupant) |
459 -- Don't include self | 459 -- Don't include self |
460 return occupant:get_presence(real_jid) == nil; | 460 return occupant:get_presence(real_jid) == nil; |
461 end) | 461 end) |