ejabberdctl change_room_option

Hi,

with mod_muc_admin installed, the following command is added to ejabberdctl:
change_room_option name service option value - Change an option in a MUC room

What is the correct way to change an option of a room?
I tried the following:
ejabberdctl change_room_option myroomname conference.example.com public_list true

But that doesn't work:

Problem 'error {badrecord,config}' occurred executing the command.
Stacktrace: [{mod_muc_admin,change_option,3},
             {mod_muc_admin,change_room_option,3},
             {mod_muc_admin,change_room_option,4},
             {ejabberd_ctl,call_command,3},
             {ejabberd_ctl,try_call_command,3},
             {ejabberd_ctl,process2,3},
             {ejabberd_ctl,process,1},
             {rpc,'-handle_call_call/6-fun-0-',5}]

Is public_list not something I can change? As far as I understood, I can change the default_room_options there (and public_list would be a default room option)..

thanks,
Michael

mweibel wrote: Problem 'error

mweibel wrote:
Problem 'error {badrecord,config}' occurred executing the command.
Stacktrace: [{mod_muc_admin,change_option,3},
             {mod_muc_admin,change_room_option,3},
             {mod_muc_admin,change_room_option,4},
             {ejabberd_ctl,call_command,3},
             {ejabberd_ctl,try_call_command,3},
             {ejabberd_ctl,process2,3},
             {ejabberd_ctl,process,1},
             {rpc,'-handle_call_call/6-fun-0-',5}]

The problem is that ejabberd and mod_muc_admin.erl were compiled with different versions of the header file mod_muc_room.hrl

When I tried your command example in my ejabberd 2.1.x git + mod_muc_admin svn, I got your same error message. Then I copied the header file from ejabberd git into mod_muc_admin/trunk/../../ejabberd-dev/trunk/include/mod_muc. And finally the command works correctly.

If you read my explanation for 30 minutes and you don't understand me, please say what ejabberd version you use, and I'll explain in more detail ;)

Hey, Thanks for you

Hey,

Thanks for you suggestion (yes I understood it ;)). I replaced now mod_muc_room.hrl with the one from git tag 2.1.5 and it seems to work :)

Maybe the howto for ejabberd-modules should mention that as well and provide ejabberd-modules for different versions?

Cheers,
Michael

Syndicate content