Software / code / prosody
Comparison
spec/scansion/muc_register.scs @ 9315:a47bba3b35f3
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 14 Sep 2018 18:06:12 +0100 |
| parent | 9312:6cab07323274 |
| child | 9322:4ce972d77c53 |
comparison
equal
deleted
inserted
replaced
| 9314:c9eef7e8ee65 | 9315:a47bba3b35f3 |
|---|---|
| 379 <query xmlns='http://jabber.org/protocol/muc#admin'> | 379 <query xmlns='http://jabber.org/protocol/muc#admin'> |
| 380 <item jid="${Juliet's JID}" affiliation='member' nick='Juliet'/> | 380 <item jid="${Juliet's JID}" affiliation='member' nick='Juliet'/> |
| 381 </query> | 381 </query> |
| 382 </iq> | 382 </iq> |
| 383 | 383 |
| 384 Juliet sends: | |
| 385 <presence type="unavailable" to="room@conference.localhost/Juliet" /> | |
| 386 | |
| 387 Juliet receives: | |
| 388 <presence from='room@conference.localhost/Juliet' type='unavailable' /> | |
| 389 | |
| 390 Romeo receives: | |
| 391 <presence type='unavailable' from='room@conference.localhost/Juliet' /> | |
| 392 | |
| 393 # Rosaline joins as herself | |
| 394 | |
| 395 Rosaline sends: | |
| 396 <presence to="room@conference.localhost/Rosaline"> | |
| 397 <x xmlns="http://jabber.org/protocol/muc"/> | |
| 398 </presence> | |
| 399 | |
| 400 Rosaline receives: | |
| 401 <presence from="room@conference.localhost/Romeo" /> | |
| 402 | |
| 403 Rosaline receives: | |
| 404 <presence from="room@conference.localhost/Rosaline" /> | |
| 405 | |
| 406 Rosaline receives: | |
| 407 <message type='groupchat' from='room@conference.localhost'><subject/></message> | |
| 408 | |
| 409 Romeo receives: | |
| 410 <presence from='room@conference.localhost/Rosaline'> | |
| 411 <x xmlns='http://jabber.org/protocol/muc#user'> | |
| 412 <item jid="${Rosaline's full JID}" affiliation='none' role='participant'/> | |
| 413 </x> | |
| 414 </presence> | |
| 415 | |
| 416 # Romeo reserves her nickname for her | |
| 417 | |
| 418 Romeo sends: | |
| 419 <iq id='member2' to='room@conference.localhost' type='set'> | |
| 420 <query xmlns='http://jabber.org/protocol/muc#admin'> | |
| 421 <item affiliation='member' jid="${Rosaline's JID}" nick='Rosaline' /> | |
| 422 </query> | |
| 423 </iq> | |
| 424 | |
| 425 Romeo receives: | |
| 426 <presence from='room@conference.localhost/Rosaline'> | |
| 427 <x xmlns='http://jabber.org/protocol/muc#user'> | |
| 428 <item affiliation='member' role='participant' jid="${Rosaline's full JID}"> | |
| 429 <actor jid="${Romeo's full JID}" nick='Romeo'/> | |
| 430 </item> | |
| 431 </x> | |
| 432 </presence> | |
| 433 | |
| 434 Romeo receives: | |
| 435 <iq type='result' id='member2' from='room@conference.localhost' /> | |
| 436 | |
| 437 Rosaline receives: | |
| 438 <presence from='room@conference.localhost/Rosaline'> | |
| 439 <x xmlns='http://jabber.org/protocol/muc#user'> | |
| 440 <item affiliation='member' role='participant' jid="${Rosaline's full JID}"> | |
| 441 <actor nick='Romeo' /> | |
| 442 </item> | |
| 443 <status xmlns='http://jabber.org/protocol/muc#user' code='110'/> | |
| 444 </x> | |
| 445 </presence> |