mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
create_room_with_opts: fix typo and move examples to args_example (#4080)
This commit is contained in:
parent
83e51c815d
commit
f8af3a0005
@ -162,14 +162,15 @@ get_commands_spec() ->
|
|||||||
result = {res, rescode}},
|
result = {res, rescode}},
|
||||||
#ejabberd_commands{name = create_room_with_opts, tags = [muc_room],
|
#ejabberd_commands{name = create_room_with_opts, tags = [muc_room],
|
||||||
desc = "Create a MUC room name@service in host with given options",
|
desc = "Create a MUC room name@service in host with given options",
|
||||||
longdesc = "To set affilitions string value must have format 'Type:JID,Type:JID' "
|
longdesc =
|
||||||
"for example 'owner:bob@example.com,member:peter@example.com'. Subscribers can be "
|
"The syntax of affiliations is: 'Type:JID,Type:JID'. "
|
||||||
"define with string 'JID:Nick:Node1:Node2,JID:Nick:Node3' for example "
|
"The syntax of subscribers is: 'JID:Nick:Node:Node2,JID:Nick:Node' ",
|
||||||
"'bob@example.com:Bob:messages:subject,anne@example.com:Anne:messages'.",
|
|
||||||
module = ?MODULE, function = create_room_with_opts,
|
module = ?MODULE, function = create_room_with_opts,
|
||||||
args_desc = ["Room name", "MUC service", "Server host", "List of options"],
|
args_desc = ["Room name", "MUC service", "Server host", "List of options"],
|
||||||
args_example = ["room1", "muc.example.com", "localhost",
|
args_example = ["room1", "muc.example.com", "localhost",
|
||||||
[{"members_only","true"}, {"subscribers", "bob@example.com:Bob:messages"}]],
|
[{"members_only","true"},
|
||||||
|
{"affiliations", "owner:bob@example.com,member:peter@example.com"},
|
||||||
|
{"subscribers", "bob@example.com:Bob:messages:subject,anne@example.com:Anne:messages"}]],
|
||||||
args = [{name, binary}, {service, binary},
|
args = [{name, binary}, {service, binary},
|
||||||
{host, binary},
|
{host, binary},
|
||||||
{options, {list,
|
{options, {list,
|
||||||
|
Loading…
Reference in New Issue
Block a user