blob: 160c13d6388e11400203f59e2e2bf40c86562a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# MUC: Prevent nicknames failing strict resourceprep
[Client] Romeo
jid: user@localhost
password: password
[Client] Roboteo
jid: bot@localhost
password: password
-----
Romeo connects
Romeo sends:
<presence to="nobots@conference.localhost/Romeo">
<x xmlns="http://jabber.org/protocol/muc"/>
</presence>
Romeo receives:
<presence from='nobots@conference.localhost/Romeo'>
<x xmlns='http://jabber.org/protocol/muc#user'>
<status code='201'/>
<item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
<status code='110'/>
</x>
</presence>
Romeo receives:
<message type='groupchat' from='nobots@conference.localhost'><subject/></message>
Roboteo connects
Roboteo sends:
<presence to="nobots@conference.localhost/🤖️">
<x xmlns="http://jabber.org/protocol/muc"/>
</presence>
Roboteo receives:
<presence type='error' from='nobots@conference.localhost/🤖'>
<error by='nobots@conference.localhost' type='modify'>
<jid-malformed xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Nickname must pass strict validation</text>
</error>
</presence>
|