Xmpp command line

From snippet wiki
Jump to navigation Jump to search

Things you can do with ejabberd on the command line:


Get all settings

ejabberdctl get_room_options testroom conference.kretschmann.chat

Update a setting

ejabberdctl change_room_option automation conference.kretschmann.chat password_protected false

Delete spam users

Delete all users except the one named admin. Change the domain.com to your local virtual host name.

ejabberdctl registered_users domain.com | sed -n '/admin/!p' | xargs -n 1 -I {} bash -c 'ejabberdctl unregister {} domain.com'