From 62ee051c6e214e4afde9358fb9a84ef370ea1217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 19 Jun 2017 16:31:07 +0200 Subject: Fix invalid {args,result}_examples in mod_muc_admin --- src/mod_muc_admin.erl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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, -- cgit v1.2.3