unknown option 'members_only' and 'mam' for 'mod_muc'

I'm trying to configure ejabberd for group chat purposes with mysql. But I cant seem to get these to options working.

Here is the relevant part of the yaml file:

mod_muc:
    ## host: "conference.@HOST@"
    access: muc
    access_create: muc_create
    access_persistent: muc_create
    access_admin: muc_admin
    members_only: true
    db_type: odbc
    mam: true 

Here's the warning from ejabberd logs:

unknown option 'members_only' for module 'mod_muc' will be likely ignored, available options are: 'access', 'access_admin', 'access_create', 'access_persistent', 'db_type', 'default_room_options', 'history_size', 'host', 'max_room_desc', 'max_room_id', 'max_room_name', 'regexp_room_id', 'max_user_conferences', 'max_users', 'max_users_admin_threshold', 'max_users_presence', 'min_message_interval', 'min_presence_interval', 'room_shaper', 'user_message_shaper', 'user_presence_shaper'

My ejabberd version is 16.01.102

Can someone shed some light on this? Ask if you need me to post more info.

mam and members_only are not

mam and members_only are not mod_muc options. They are room options, which you can set inside the default_room_options mod_muc option. The documentation indentation maybe confused you.

This is the correct config:

mod_muc:
  ## host: "conference.@HOST@"
  access: muc
  access_create: muc_create
  access_persistent: muc_create
  access_admin: muc_admin
  db_type: odbc
  default_room_options:
    members_only: true
    mam: true 

Oops. Thank you.

Oops. Thank you.

Syndicate content