Skip to content

Instantly share code, notes, and snippets.

@vienvu89
Last active June 15, 2016 07:13
Show Gist options
  • Save vienvu89/659a5e9d3c40d06e61666f1a349c5258 to your computer and use it in GitHub Desktop.
Save vienvu89/659a5e9d3c40d06e61666f1a349c5258 to your computer and use it in GitHub Desktop.
<x
xmlns="jabber:x:data" type="form">
<title>Room configuration</title>
<instructions>The room "5ae8806bcf3508a9e0ed6ecedd160627" has been created. To accept the default configuration, click the "OK" button. Or, modify the settings by completing the following form:</instructions>
<field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/muc#roomconfig</value>
</field>
<field var="muc#roomconfig_roomname" type="text-single" label="Room Name">
<value>5ae8806bcf3508a9e0ed6ecedd160627</value>
</field>
<field var="muc#roomconfig_roomdesc" type="text-single" label="Description">
<value>5ae8806bcf3508a9e0ed6ecedd160627</value>
</field>
<field var="muc#roomconfig_changesubject" type="boolean" label="Allow Occupants to Change Subject">
<value>0</value>
</field>
<field var="muc#roomconfig_maxusers" type="list-single" label="Maximum Room Occupants">
<option label="10">
<value>10</value>
</option>
<option label="20">
<value>20</value>
</option>
<option label="30">
<value>30</value>
</option>
<option label="40">
<value>40</value>
</option>
<option label="50">
<value>50</value>
</option>
<option label="None">
<value>0</value>
</option>
<value>0</value>
</field>
<field var="muc#roomconfig_presencebroadcast" type="list-multi" label="Roles for Which Presence is Broadcast">
<option label="Moderator">
<value>moderator</value>
</option>
<option label="Participant">
<value>participant</value>
</option>
<option label="Visitor">
<value>visitor</value>
</option>
<value>moderator</value>
<value>participant</value>
<value>visitor</value>
</field>
<field var="muc#roomconfig_publicroom" type="boolean" label="List Room in Directory">
<value>1</value>
</field>
<field var="muc#roomconfig_persistentroom" type="boolean" label="Room is Persistent">
<value>0</value>
</field>
<field var="muc#roomconfig_moderatedroom" type="boolean" label="Room is Moderated">
<value>0</value>
</field>
<field var="muc#roomconfig_membersonly" type="boolean" label="Room is Members-only">
<value>0</value>
</field>
<field type="fixed">
<value>Note: by default, only admins can send invitations in an members-only room.</value>
</field>
<field var="muc#roomconfig_allowinvites" type="boolean" label="Allow Occupants to Invite Others">
<value>0</value>
</field>
<field var="muc#roomconfig_passwordprotectedroom" type="boolean" label="Password Required to Enter Room">
<value>0</value>
</field>
<field type="fixed">
<value>If a password is required to enter this room, you must specify the password below.</value>
</field>
<field var="muc#roomconfig_roomsecret" type="text-private" label="Password"/>
<field var="muc#roomconfig_whois" type="list-single" label="Role that May Discover Real JIDs of Occupants">
<option label="Moderator">
<value>moderators</value>
</option>
<option label="Anyone">
<value>anyone</value>
</option>
<value>anyone</value>
</field>
<field var="muc#roomconfig_enablelogging" type="boolean" label="Log Room Conversations">
<value>1</value>
</field>
<field var="x-muc#roomconfig_reservednick" type="boolean" label="Only login with registered nickname">
<value>0</value>
</field>
<field var="x-muc#roomconfig_canchangenick" type="boolean" label="Allow Occupants to change nicknames">
<value>1</value>
</field>
<field type="fixed">
<value>Allow Users to register with the room</value>
</field>
<field var="x-muc#roomconfig_registration" type="boolean" label="Allow Users to register with the room">
<value>1</value>
</field>
<field type="fixed">
<value>You may specify administrators of this room. Please provide one JID per line.</value>
</field>
<field var="muc#roomconfig_roomadmins" type="jid-multi" label="Room Admins"/>
<field type="fixed">
<value>You may specify additional owners for this room. Please provide one JID per line.</value>
</field>
<field var="muc#roomconfig_roomowners" type="jid-multi" label="Room Owners">
<value>asdasd@52.77.145.30</value>
</field>
</x>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment