%ents; ]>
Extensible Status Conditions for Multi-User Chat This document defines an extensible format for status conditions in Multi-User Chat, similar to the error format used in the core of XMPP. &LEGALNOTICE; 0306 Experimental Standards Track Standards RFC 6120 XEP-0045 N/A &stpeter; 0.1 2011-08-26 psa

Initial published version.

0.0.1 2011-08-12 psa

Rough draft.

Traditionally, &xep0045; has used numerical status codes similar to those used in HTTP and SMTP. Numerical codes were deprecated in the core of XMPP by &rfc3920; and are no longer even defined in the core schemas provided in &rfc6120; (see also &xep0086;). In an effort to modernize the Multi-User Chat (MUC) protocol, this document defines an extensible format for status conditions in MUC.

XML elements describing status conditions defined by this specification SHALL be qualified by the 'urn:xmpp:muc:conditions:0' namespace.

The structure is as follows:

[OPTIONAL descriptive text] [OPTIONAL application-specific condition element] [] [OPTIONAL application-specific condition element or elements] ]]>

That is, the <conditions/> element MAY contain one or more condition elements defined in this document (each of which MAY contain a human-readable <text/> element and MAY contain an application-specific condition element) and MAY contain one or more application-specific condition elements.

The <conditions/> element is intended to be a direct child of the &X; element qualified by the 'http://jabber.org/protocol/muc#user' as used for status notifications in multi-user chat.

An example follows.

]]>

The following table maps the existing numerical status codes (registered with the ®ISTRAR; at &MUCSTATUS;) to XML elements.

Code Element
100 <realjid-public/>
101 <affiliation-changed/>
102 <unavailable-shown/>
103 <unavailable-not-shown/>
104 <configuration-changed/>
110 <self-presence/>
170 <logging-enabled/>
171 <logging-disabled/>
172 <non-anonymous/>
173 <semi-anonymous/>
174 <fully-anonymous/>
201 <room-created/>
210 <nick-assigned/>
301 <banned/>
303 <new-nick/>
307 <kicked/>
321 <removed-affiliation/>
322 <removed-membership/>
332 <removed-shutdown/>

The security considerations of XEP-0045 apply.

This document requires no interaction with &IANA;.

This specification defines the following XML namespace:

  • urn:xmpp:muc:conditions:0

Upon advancement of this specification from a status of Experimental to a status of Draft, the ®ISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.

&NSVER;

The XMPP Registrar is requested to add the elements defined in this specification to the existing registry for MUC status codes at &MUCSTATUS;.

]]>