Multi User Chat Administration Commands¶
Prerequisite¶
Most of the command to manage MUC service depends on the activation of mod_muc_admin
module in ejabberd.
mod_muc_admin
is included in ejabberd main code base since ejabberd 15.04.
To enable mod_muc_admin
-dependant ejabberdctl
commands, you just need to add mod_muc_admin
in modules
section of ejabberd config file.
For example, in ejabberd.yml
format:
Commands¶
The most updated and detailed list of commands for managing a MUC service and MUC rooms is available in the muc API tag and the muc_room API tag.
Online Rooms¶
List existing rooms ('global' to get all vhosts).
Unregister nickname¶
Unregister the nick in the MUC service.
Create MUC room¶
Create a MUC room name@service
in host.
Destroy MUC room¶
Destroy a MUC chat room.
Create multiple rooms from file¶
Create the rooms listed in a local file.
TODO: Describe the file format.
Destroy multiple rooms from file¶
Destroy the rooms indicated in a local file.
List unused MUC rooms¶
List rooms that have not been used in several days on an XMPP domain.
Destroy unused MUC rooms¶
Destroy rooms that have not been used in several days on an XMPP domain.
List rooms joined by a given user¶
Get the list of rooms where a user is occupant.
List the occupants of a MUC room¶
Get the list of occupants of a MUC room.
Retrieve number of occupants in a MUC room¶
Get the number of occupants of a MUC room.
Invite several users to a MUC room¶
Send a direct invitation to several JIDs. Password and Message can also be: none. Users JIDs are separated with ':'.
Change option for a MUC room¶
Change an option in a MUC room.
Get options from a MUC room¶
Get options from a MUC room.
Change affiliation for a user in a MUC room¶
Change an affiliation in a MUC room. Affiliation can be one of: owner, admin, member, outcast, none.
Get affiliations for a MUC room¶
Get the list of affiliations of a MUC room.