]> granicus.if.org Git - ejabberd/commitdiff
Update - fixed ejabberdctl push_roster description
authorSnowman <25300463+Snowmanko@users.noreply.github.com>
Thu, 22 Nov 2018 15:32:05 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 15:32:05 +0000 (16:32 +0100)
src/mod_admin_extra.erl

index 5db82f82ab82e3c9f7f2a857730abe1e6d3043e1..ff5af691dfaf54db7add2699ec8f59202256c597 100644 (file)
@@ -560,8 +560,10 @@ get_commands_spec() ->
                        desc = "Push template roster from file to a user",
                        longdesc = "The text file must contain an erlang term: a list "
                            "of tuples with username, servername, group and nick. Example:\n"
-                           "[{\"user1\", \"localhost\", \"Workers\", \"User 1\"},\n"
-                           " {\"user2\", \"localhost\", \"Workers\", \"User 2\"}].",
+                           "[{<<\"user1\">>, <<\"localhost\">>, <<\"Workers\">>, <<\"User 1\"},\n"
+                           " {<<\"user2\">>, <<\"localhost\">>, <<\"Workers\">>, <<\"User 2\"}].\n"
+                           "When using UTF8 character encoding add /utf8 to certain string. Example:\n"
+                           "[{<<\"user2\">>, <<\"localhost\">>, <<\"Workers\"/utf8>>, <<\"User 2\"/utf8>>}].",
                        module = ?MODULE, function = push_roster,
                        args = [{file, binary}, {user, binary}, {host, binary}],
                        args_example = [<<"/home/ejabberd/roster.txt">>, <<"user1">>, <<"localhost">>],