Software /
code /
prosody
Comparison
spec/scansion/muc_outcast_reason.scs @ 13415:f34b33cb1383
MUC: Record reason for affiliation changes and return in list (fixes #1227)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Aug 2021 18:07:17 +0200 |
comparison
equal
deleted
inserted
replaced
13414:d54364746a7c | 13415:f34b33cb1383 |
---|---|
1 # Save ban reason | |
2 | |
3 [Client] Romeo | |
4 password: password | |
5 jid: user@localhost | |
6 | |
7 ----- | |
8 | |
9 Romeo connects | |
10 | |
11 Romeo sends: | |
12 <presence to="muc-outcast-reason@conference.localhost/Romeo"> | |
13 <x xmlns="http://jabber.org/protocol/muc"/> | |
14 </presence> | |
15 | |
16 Romeo receives: | |
17 <presence from="muc-outcast-reason@conference.localhost/Romeo"> | |
18 <x xmlns="http://jabber.org/protocol/muc#user"> | |
19 <status code="201"/> | |
20 <item jid="${Romeo's full JID}" role="moderator" affiliation="owner"/> | |
21 <status code="110"/> | |
22 </x> | |
23 </presence> | |
24 | |
25 Romeo receives: | |
26 <message type="groupchat" from="muc-outcast-reason@conference.localhost"> | |
27 <subject/> | |
28 </message> | |
29 | |
30 Romeo sends: | |
31 <iq id="lx5" to="muc-outcast-reason@conference.localhost" type="set"> | |
32 <query xmlns="http://jabber.org/protocol/muc#admin"> | |
33 <item affiliation="outcast" jid="tybalt@localhost"> | |
34 <reason>Hey calm down</reason> | |
35 </item> | |
36 </query> | |
37 </iq> | |
38 | |
39 Romeo receives: | |
40 <message from="muc-outcast-reason@conference.localhost"> | |
41 <x xmlns="http://jabber.org/protocol/muc#user"> | |
42 <status code="301"/> | |
43 <item jid="tybalt@localhost" affiliation="outcast"> | |
44 <reason>Hey calm down</reason> | |
45 </item> | |
46 </x> | |
47 </message> | |
48 | |
49 Romeo receives: | |
50 <iq id="lx5" type="result" from="muc-outcast-reason@conference.localhost"/> | |
51 | |
52 Romeo sends: | |
53 <iq id="lx6" to="muc-outcast-reason@conference.localhost" type="get"> | |
54 <query xmlns="http://jabber.org/protocol/muc#admin"> | |
55 <item affiliation="outcast"/> | |
56 </query> | |
57 </iq> | |
58 | |
59 Romeo receives: | |
60 <iq id="lx6" type="result" from="muc-outcast-reason@conference.localhost"> | |
61 <query xmlns="http://jabber.org/protocol/muc#admin"> | |
62 <item jid="tybalt@localhost" affiliation="outcast"> | |
63 <reason>Hey calm down</reason> | |
64 </item> | |
65 </query> | |
66 </iq> | |
67 | |
68 Romeo disconnects | |
69 | |
70 Romeo sends: | |
71 <presence type='unavailable'/> | |
72 |