Software /
code /
verse
Comparison
plugins/disco.lua @ 429:46897d7769c3
disco: Force calculated caps in outgoing presence
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 22 Oct 2020 13:54:46 +0100 |
parent | 423:e98cef597393 |
child | 473:b2198cd64c5a |
comparison
equal
deleted
inserted
replaced
426:9813b17ee096 | 429:46897d7769c3 |
---|---|
326 end); | 326 end); |
327 return true; | 327 return true; |
328 end, 50); | 328 end, 50); |
329 | 329 |
330 stream:hook("presence-out", function (presence) | 330 stream:hook("presence-out", function (presence) |
331 if not presence:get_child("c", xmlns_caps) then | 331 presence:remove_children("c", xmlns_caps); |
332 presence:reset():add_child(stream:caps()):reset(); | 332 presence:reset():add_child(stream:caps()):reset(); |
333 end | |
334 end, 10); | 333 end, 10); |
335 end | 334 end |
336 | 335 |
337 -- end of disco.lua | 336 -- end of disco.lua |