Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give muc status codes names #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mucstatus-xml.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<xsl:template match='statuscode'>
<statuscode>
<number><xsl:value-of select='name'/></number>
<number><xsl:value-of select='number'/></number>
<stanza><xsl:value-of select='stanza'/></stanza>
<context><xsl:value-of select='context'/></context>
Expand Down
27 changes: 26 additions & 1 deletion mucstatus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE registry SYSTEM 'reg.dtd' [
<!ENTITY % ents SYSTEM 'reg.ent'>
<!ELEMENT registry ( meta, statuscode* ) >
<!ELEMENT statuscode ( number, stanza, context, purpose ) >
<!ELEMENT statuscode ( name, number, stanza, context, purpose ) >
<!ELEMENT number (#PCDATA)* >
<!ELEMENT stanza (#PCDATA)* >
<!ELEMENT context (#PCDATA)* >
Expand All @@ -15,6 +15,12 @@
<title>Multi-User Chat Status Codes</title>
&LEGALNOTICE;
<overview>This is the official registry of Multi-User Chat Status Codes as maintained by the &REGISTRAR; and authorized by &xep0045;.</overview>
<revision>
<version>0.4</version>
<date>2021-07-03</date>
<initials>ssw</initials>
<remark>Add names for each code.</remark>
</revision>
<revision>
<version>0.3</version>
<date>2006-11-30</date>
Expand All @@ -35,109 +41,127 @@
</revision>
</meta>
<statuscode>
<name>RoomNotAnonymous</name>
<number>100</number>
<stanza>message</stanza>
<context>Entering a room</context>
<purpose>Inform user that any occupant is allowed to see the user's full JID</purpose>
</statuscode>
<statuscode>
<name>AffiliationChanged</name>
<number>101</number>
<stanza>message (out of band)</stanza>
<context>Affiliation change</context>
<purpose>Inform user that his or her affiliation changed while not in the room</purpose>
</statuscode>
<statuscode>
<name>ShowingUnavailableMembers</name>
<number>102</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that room now shows unavailable members</purpose>
</statuscode>
<statuscode>
<name>HidingUnavailableMembers</name>
<number>103</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that room now does not show unavailable members</purpose>
</statuscode>
<statuscode>
<name>RoomConfigChanged</name>
<number>104</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that a non-privacy-related room configuration change has occurred</purpose>
</statuscode>
<statuscode>
<name>SelfPresence</name>
<number>110</number>
<stanza>presence</stanza>
<context>Any room presence</context>
<purpose>Inform user that presence refers to one of its own room occupants</purpose>
</statuscode>
<statuscode>
<name>LoggingEnabled</name>
<number>170</number>
<stanza>message or initial presence</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that room logging is now enabled</purpose>
</statuscode>
<statuscode>
<name>LoggingDisabled</name>
<number>171</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that room logging is now disabled</purpose>
</statuscode>
<statuscode>
<name>RoomChangedNonAnonymous</name>
<number>172</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that the room is now non-anonymous</purpose>
</statuscode>
<statuscode>
<name>RoomChangedSemiAnonymous</name>
<number>173</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that the room is now semi-anonymous</purpose>
</statuscode>
<statuscode>
<name>RoomChangedFullyAnonymous</name>
<number>174</number>
<stanza>message</stanza>
<context>Configuration change</context>
<purpose>Inform occupants that the room is now fully-anonymous</purpose>
</statuscode>
<statuscode>
<name>RoomCreated</name>
<number>201</number>
<stanza>presence</stanza>
<context>Entering a room</context>
<purpose>Inform user that a new room has been created</purpose>
</statuscode>
<statuscode>
<name>RoomModifiedNick</name>
<number>210</number>
<stanza>presence</stanza>
<context>Entering a room</context>
<purpose>Inform user that the service has assigned or modified the occupant's roomnick</purpose>
</statuscode>
<statuscode>
<name>RoomModifiedNick</name>
<number>301</number>
<stanza>presence</stanza>
<context>Removal from room</context>
<purpose>Inform user that he or she has been banned from the room</purpose>
</statuscode>
<statuscode>
<name>OldNicknameChanged</name>
<number>303</number>
<stanza>presence</stanza>
<context>Exiting a room</context>
<purpose>Inform all occupants of new room nickname</purpose>
</statuscode>
<statuscode>
<name>UserKicked</name>
<number>307</number>
<stanza>presence</stanza>
<context>Removal from room</context>
<purpose>Inform user that he or she has been kicked from the room</purpose>
</statuscode>
<statuscode>
<name>UserRemovedAffilation</name>
<number>321</number>
<stanza>presence</stanza>
<context>Removal from room</context>
<purpose>Inform user that he or she is being removed from the room
because of an affiliation change</purpose>
</statuscode>
<statuscode>
<name>NonMemberRemoveed</name>
<number>322</number>
<stanza>presence</stanza>
<context>Removal from room</context>
Expand All @@ -146,6 +170,7 @@
is not a member</purpose>
</statuscode>
<statuscode>
<name>SystemShutdown</name>
<number>332</number>
<stanza>presence</stanza>
<context>Removal from room</context>
Expand Down
2 changes: 2 additions & 0 deletions mucstatus.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<hr />
<table border='1' cellpadding='3' cellspacing='0'>
<tr class='body'>
<th>Name</th>
<th>Number</th>
<th>Stanza</th>
<th>Context</th>
Expand All @@ -41,6 +42,7 @@

<xsl:template match='statuscode'>
<tr class='body'>
<td><xsl:value-of select='name'/></td>
<td><xsl:value-of select='number'/></td>
<td><xsl:value-of select='stanza'/></td>
<td><xsl:value-of select='context'/></td>
Expand Down