Comparison

mod_ping_muc/mod_ping_muc.lua @ 4887:806f7c8d830b

mod_ping_muc: Remove 'kick' status code The intent is "you fell off", not "you were kicked out", however older clients may not recognise the 333 code, but that will have to be an acceptable loss.
author Kim Alvefur <zash@zash.se>
date Mon, 07 Feb 2022 16:52:19 +0100
parent 4804:a7c0c70e64b6
child 5130:0772facc786f
comparison
equal deleted inserted replaced
4886:cbe71ecb4677 4887:806f7c8d830b
50 :tag("x", { xmlns = "http://jabber.org/protocol/muc#user" }) 50 :tag("x", { xmlns = "http://jabber.org/protocol/muc#user" })
51 :tag("item", { affiliation = "none"; role = "none" }) 51 :tag("item", { affiliation = "none"; role = "none" })
52 :text_tag("reason", err.text or "Connection to remote server lost") 52 :text_tag("reason", err.text or "Connection to remote server lost")
53 :up() 53 :up()
54 :tag("status", { code = "110" }):up() 54 :tag("status", { code = "110" }):up()
55 :tag("status", { code = "307" }):up()
56 :tag("status", { code = "333" }):up() 55 :tag("status", { code = "333" }):up()
57 :reset()); 56 :reset());
58 end); 57 end);
59 -- TODO do this with some delay? 58 -- TODO do this with some delay?
60 end 59 end