aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-06-19 16:31:07 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-06-19 16:31:07 +0200
commit62ee051c6e214e4afde9358fb9a84ef370ea1217 (patch)
treead9cad54d1f57f44605af18024578a734f33c920
parentGenerate better errors when not being able to generate documentation (diff)
Fix invalid {args,result}_examples in mod_muc_admin
-rw-r--r--src/mod_muc_admin.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index 8726856b5..6966d4180 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -208,8 +208,11 @@ get_commands_spec() ->
module = ?MODULE, function = send_direct_invitation,
args_desc = ["Room name", "MUC service", "Password, or none",
"Reason text, or none", "Users JIDs separated with : characters"],
- args_example = ["room1", "muc.example.com", none, none, "user2@localhost:user3@example.com"],
- args = [{name, binary}, {service, binary}, {password, binary}, {reason, binary}, {users, binary}],
+ args_example = [<<"room1">>, <<"muc.example.com">>,
+ <<>>, <<"Check this out!">>,
+ "user2@localhost:user3@example.com"],
+ args = [{name, binary}, {service, binary}, {password, binary},
+ {reason, binary}, {users, binary}],
result = {res, rescode}},
#ejabberd_commands{name = change_room_option, tags = [muc_room],
@@ -277,7 +280,7 @@ get_commands_spec() ->
args_desc = ["Room name", "MUC service"],
args_example = ["room1", "muc.example.com"],
result_desc = "The list of affiliations with username, domain, affiliation and reason",
- result_example = [{"user1", "example.com", "member"}],
+ result_example = [{"user1", "example.com", member, "member"}],
args = [{name, binary}, {service, binary}],
result = {affiliations, {list,
{affiliation, {tuple,