Skip to content

Commit 317f6dc

Browse files
committed
Give muc status codes names
Signed-off-by: Sam Whited <[email protected]>
1 parent 7d73eaf commit 317f6dc

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

mucstatus-xml.xsl

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<xsl:template match='statuscode'>
1313
<statuscode>
14+
<number><xsl:value-of select='name'/></number>
1415
<number><xsl:value-of select='number'/></number>
1516
<stanza><xsl:value-of select='stanza'/></stanza>
1617
<context><xsl:value-of select='context'/></context>

mucstatus.xml

+26-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!DOCTYPE registry SYSTEM 'reg.dtd' [
33
<!ENTITY % ents SYSTEM 'reg.ent'>
44
<!ELEMENT registry ( meta, statuscode* ) >
5-
<!ELEMENT statuscode ( number, stanza, context, purpose ) >
5+
<!ELEMENT statuscode ( name, number, stanza, context, purpose ) >
66
<!ELEMENT number (#PCDATA)* >
77
<!ELEMENT stanza (#PCDATA)* >
88
<!ELEMENT context (#PCDATA)* >
@@ -15,6 +15,12 @@
1515
<title>Multi-User Chat Status Codes</title>
1616
&LEGALNOTICE;
1717
<overview>This is the official registry of Multi-User Chat Status Codes as maintained by the &REGISTRAR; and authorized by &xep0045;.</overview>
18+
<revision>
19+
<version>0.4</version>
20+
<date>2021-07-03</date>
21+
<initials>ssw</initials>
22+
<remark>Add names for each code.</remark>
23+
</revision>
1824
<revision>
1925
<version>0.3</version>
2026
<date>2006-11-30</date>
@@ -35,109 +41,127 @@
3541
</revision>
3642
</meta>
3743
<statuscode>
44+
<name>RoomNotAnonymous</name>
3845
<number>100</number>
3946
<stanza>message</stanza>
4047
<context>Entering a room</context>
4148
<purpose>Inform user that any occupant is allowed to see the user's full JID</purpose>
4249
</statuscode>
4350
<statuscode>
51+
<name>AffiliationChanged</name>
4452
<number>101</number>
4553
<stanza>message (out of band)</stanza>
4654
<context>Affiliation change</context>
4755
<purpose>Inform user that his or her affiliation changed while not in the room</purpose>
4856
</statuscode>
4957
<statuscode>
58+
<name>ShowingUnavailableMembers</name>
5059
<number>102</number>
5160
<stanza>message</stanza>
5261
<context>Configuration change</context>
5362
<purpose>Inform occupants that room now shows unavailable members</purpose>
5463
</statuscode>
5564
<statuscode>
65+
<name>HidingUnavailableMembers</name>
5666
<number>103</number>
5767
<stanza>message</stanza>
5868
<context>Configuration change</context>
5969
<purpose>Inform occupants that room now does not show unavailable members</purpose>
6070
</statuscode>
6171
<statuscode>
72+
<name>RoomConfigChanged</name>
6273
<number>104</number>
6374
<stanza>message</stanza>
6475
<context>Configuration change</context>
6576
<purpose>Inform occupants that a non-privacy-related room configuration change has occurred</purpose>
6677
</statuscode>
6778
<statuscode>
79+
<name>SelfPresence</name>
6880
<number>110</number>
6981
<stanza>presence</stanza>
7082
<context>Any room presence</context>
7183
<purpose>Inform user that presence refers to one of its own room occupants</purpose>
7284
</statuscode>
7385
<statuscode>
86+
<name>LoggingEnabled</name>
7487
<number>170</number>
7588
<stanza>message or initial presence</stanza>
7689
<context>Configuration change</context>
7790
<purpose>Inform occupants that room logging is now enabled</purpose>
7891
</statuscode>
7992
<statuscode>
93+
<name>LoggingDisabled</name>
8094
<number>171</number>
8195
<stanza>message</stanza>
8296
<context>Configuration change</context>
8397
<purpose>Inform occupants that room logging is now disabled</purpose>
8498
</statuscode>
8599
<statuscode>
100+
<name>RoomChangedNonAnonymous</name>
86101
<number>172</number>
87102
<stanza>message</stanza>
88103
<context>Configuration change</context>
89104
<purpose>Inform occupants that the room is now non-anonymous</purpose>
90105
</statuscode>
91106
<statuscode>
107+
<name>RoomChangedSemiAnonymous</name>
92108
<number>173</number>
93109
<stanza>message</stanza>
94110
<context>Configuration change</context>
95111
<purpose>Inform occupants that the room is now semi-anonymous</purpose>
96112
</statuscode>
97113
<statuscode>
114+
<name>RoomChangedFullyAnonymous</name>
98115
<number>174</number>
99116
<stanza>message</stanza>
100117
<context>Configuration change</context>
101118
<purpose>Inform occupants that the room is now fully-anonymous</purpose>
102119
</statuscode>
103120
<statuscode>
121+
<name>RoomCreated</name>
104122
<number>201</number>
105123
<stanza>presence</stanza>
106124
<context>Entering a room</context>
107125
<purpose>Inform user that a new room has been created</purpose>
108126
</statuscode>
109127
<statuscode>
128+
<name>RoomModifiedNick</name>
110129
<number>210</number>
111130
<stanza>presence</stanza>
112131
<context>Entering a room</context>
113132
<purpose>Inform user that the service has assigned or modified the occupant's roomnick</purpose>
114133
</statuscode>
115134
<statuscode>
135+
<name>RoomModifiedNick</name>
116136
<number>301</number>
117137
<stanza>presence</stanza>
118138
<context>Removal from room</context>
119139
<purpose>Inform user that he or she has been banned from the room</purpose>
120140
</statuscode>
121141
<statuscode>
142+
<name>OldNicknameChanged</name>
122143
<number>303</number>
123144
<stanza>presence</stanza>
124145
<context>Exiting a room</context>
125146
<purpose>Inform all occupants of new room nickname</purpose>
126147
</statuscode>
127148
<statuscode>
149+
<name>UserKicked</name>
128150
<number>307</number>
129151
<stanza>presence</stanza>
130152
<context>Removal from room</context>
131153
<purpose>Inform user that he or she has been kicked from the room</purpose>
132154
</statuscode>
133155
<statuscode>
156+
<name>UserRemovedAffilation</name>
134157
<number>321</number>
135158
<stanza>presence</stanza>
136159
<context>Removal from room</context>
137160
<purpose>Inform user that he or she is being removed from the room
138161
because of an affiliation change</purpose>
139162
</statuscode>
140163
<statuscode>
164+
<name>NonMemberRemoveed</name>
141165
<number>322</number>
142166
<stanza>presence</stanza>
143167
<context>Removal from room</context>
@@ -146,6 +170,7 @@
146170
is not a member</purpose>
147171
</statuscode>
148172
<statuscode>
173+
<name>SystemShutdown</name>
149174
<number>332</number>
150175
<stanza>presence</stanza>
151176
<context>Removal from room</context>

mucstatus.xsl

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<hr />
2323
<table border='1' cellpadding='3' cellspacing='0'>
2424
<tr class='body'>
25+
<th>Name</th>
2526
<th>Number</th>
2627
<th>Stanza</th>
2728
<th>Context</th>
@@ -41,6 +42,7 @@
4142

4243
<xsl:template match='statuscode'>
4344
<tr class='body'>
45+
<td><xsl:value-of select='name'/></td>
4446
<td><xsl:value-of select='number'/></td>
4547
<td><xsl:value-of select='stanza'/></td>
4648
<td><xsl:value-of select='context'/></td>

0 commit comments

Comments
 (0)