Software /
code /
prosody
Comparison
plugins/mod_muc.lua @ 965:8bc06338aac3
mod_muc: Fix malformed presence stanzas (thanks elmex)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Apr 2009 20:19:09 +0100 |
parent | 937:40ccaacb2000 |
child | 1042:a3d77353c18a |
child | 1059:aed462ef09d8 |
comparison
equal
deleted
inserted
replaced
964:3296db2ad4a0 | 965:8bc06338aac3 |
---|---|
257 end | 257 end |
258 end | 258 end |
259 end | 259 end |
260 else -- possible rejoin | 260 else -- possible rejoin |
261 log("debug", "%s had connection replaced", current_nick); | 261 log("debug", "%s had connection replaced", current_nick); |
262 handle_to_occupant(origin, st.presence({type='unavailable', from=from, to=to}):tag('status'):text('Replaced by new connection')); -- send unavailable | 262 handle_to_occupant(origin, st.presence({type='unavailable', from=from, to=to}):tag('status'):text('Replaced by new connection'):up()); -- send unavailable |
263 handle_to_occupant(origin, stanza); -- resend available | 263 handle_to_occupant(origin, stanza); -- resend available |
264 end | 264 end |
265 else -- enter room | 265 else -- enter room |
266 local new_nick = to; | 266 local new_nick = to; |
267 if rooms:get(room, to) then | 267 if rooms:get(room, to) then |