24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-09-29 14:37:44 +02:00

Fix type arguments in commands from mod_admin_p1

This commit is contained in:
Paweł Chmielowski 2013-03-22 13:46:30 +01:00
parent 4b7c74415f
commit 0a69935b6b

View File

@ -123,7 +123,7 @@ commands() ->
tags = [erlang],
desc = "Stop an ejabberd module, reload code and start",
module = ?MODULE, function = restart_module,
args = [{module, string}, {host, string}],
args = [{module, binary}, {host, binary}],
result = {res, rescode}},
#ejabberd_commands{name = create_account,
tags = [accounts],
@ -131,15 +131,15 @@ commands() ->
longdesc = "This command is similar to 'register'.",
module = ?MODULE, function = create_account,
args =
[{user, string}, {server, string},
{password, string}],
[{user, binary}, {server, binary},
{password, binary}],
result = {res, integer}},
#ejabberd_commands{name = delete_account,
tags = [accounts],
desc = "Remove an account from the server",
longdesc = "This command is similar to 'unregister'.",
module = ?MODULE, function = delete_account,
args = [{user, string}, {server, string}],
args = [{user, binary}, {server, binary}],
result = {res, integer}},
#ejabberd_commands{name = rename_account,
tags = [accounts], desc = "Change an acount name",
@ -150,8 +150,8 @@ commands() ->
"messages and private storage are lost.",
module = ?MODULE, function = rename_account,
args =
[{user, string}, {server, string},
{newuser, string}, {newserver, string}],
[{user, binary}, {server, binary},
{newuser, binary}, {newserver, binary}],
result = {res, integer}},
#ejabberd_commands{name = change_password,
tags = [accounts],
@ -159,8 +159,8 @@ commands() ->
"Change the password on behalf of the given user",
module = ?MODULE, function = change_password,
args =
[{user, string}, {server, string},
{newpass, string}],
[{user, binary}, {server, binary},
{newpass, binary}],
result = {res, integer}},
#ejabberd_commands{name = check_account,
tags = [accounts],
@ -183,7 +183,7 @@ commands() ->
"Other informations are unchanged.",
module = ?MODULE, function = set_nickname,
args =
[{user, string}, {server, string}, {nick, string}],
[{user, binary}, {server, binary}, {nick, binary}],
result = {res, integer}},
#ejabberd_commands{name = add_rosteritem,
tags = [roster],
@ -209,8 +209,8 @@ commands() ->
"roster item addition.\n\n",
module = ?MODULE, function = add_rosteritem,
args =
[{user, string}, {server, string}, {jid, string},
{group, string}, {nick, string}, {subs, string}],
[{user, binary}, {server, binary}, {jid, binary},
{group, binary}, {nick, binary}, {subs, binary}],
result = {res, integer}},
#ejabberd_commands{name = delete_rosteritem,
tags = [roster],
@ -229,7 +229,7 @@ commands() ->
"purpose.",
module = ?MODULE, function = delete_rosteritem,
args =
[{user, string}, {server, string}, {jid, string}],
[{user, binary}, {server, binary}, {jid, binary}],
result = {res, integer}},
#ejabberd_commands{name = add_rosteritem_groups,
tags = [roster],
@ -239,8 +239,8 @@ commands() ->
"with group names separated by the character ;",
module = ?MODULE, function = add_rosteritem_groups,
args =
[{user, string}, {server, string}, {jid, string},
{groups, string}, {push, string}],
[{user, binary}, {server, binary}, {jid, binary},
{groups, binary}, {push, binary}],
result = {res, integer}},
#ejabberd_commands{name = del_rosteritem_groups,
tags = [roster],
@ -250,8 +250,8 @@ commands() ->
"with group names separated by the character ;",
module = ?MODULE, function = del_rosteritem_groups,
args =
[{user, string}, {server, string}, {jid, string},
{groups, string}, {push, string}],
[{user, binary}, {server, binary}, {jid, binary},
{groups, binary}, {push, binary}],
result = {res, integer}},
#ejabberd_commands{name = modify_rosteritem_groups,
tags = [roster],
@ -261,8 +261,8 @@ commands() ->
"with group names separated by the character ;",
module = ?MODULE, function = modify_rosteritem_groups,
args =
[{user, string}, {server, string}, {jid, string},
{groups, string}, {subs, string}, {push, string}],
[{user, binary}, {server, binary}, {jid, binary},
{groups, binary}, {subs, binary}, {push, binary}],
result = {res, integer}},
#ejabberd_commands{name = link_contacts,
tags = [roster],
@ -283,8 +283,8 @@ commands() ->
"or server integration purpose.",
module = ?MODULE, function = link_contacts,
args =
[{jid1, string}, {nick1, string}, {group1, string},
{jid2, string}, {nick2, string}, {group2, string}],
[{jid1, binary}, {nick1, binary}, {group1, binary},
{jid2, binary}, {nick2, binary}, {group2, binary}],
result = {res, integer}},
#ejabberd_commands{name = unlink_contacts,
tags = [roster],
@ -297,7 +297,7 @@ commands() ->
"only be used for server administration "
"or server integration purpose.",
module = ?MODULE, function = unlink_contacts,
args = [{jid1, string}, {jid2, string}],
args = [{jid1, binary}, {jid2, binary}],
result = {res, integer}},
#ejabberd_commands{name = add_contacts, tags = [roster],
desc =
@ -305,21 +305,21 @@ commands() ->
"\"both\" for a given list of contacts",
module = ?MODULE, function = add_contacts,
args =
[{user, string}, {server, string},
[{user, binary}, {server, binary},
{contacts,
{list,
{contact,
{tuple,
[{jid, string}, {group, string},
{nick, string}]}}}}],
[{jid, binary}, {group, binary},
{nick, binary}]}}}}],
result = {res, integer}},
#ejabberd_commands{name = remove_contacts,
tags = [roster],
desc = "Call del_rosteritem for a list of contacts",
module = ?MODULE, function = remove_contacts,
args =
[{user, string}, {server, string},
{contacts, {list, {jid, string}}}],
[{user, binary}, {server, binary},
{contacts, {list, {jid, binary}}}],
result = {res, integer}},
#ejabberd_commands{name = check_users_registration,
tags = [roster],
@ -329,7 +329,7 @@ commands() ->
[{users,
{list,
{auser,
{tuple, [{user, string}, {server, string}]}}}}],
{tuple, [{user, binary}, {server, binary}]}}}}],
result =
{users,
{list,
@ -347,7 +347,7 @@ commands() ->
"\"both\". Pending can be \"in\", \"out\" "
"or \"none\".",
module = ?MODULE, function = get_roster,
args = [{user, string}, {server, string}],
args = [{user, binary}, {server, binary}],
result =
{contacts,
{list,
@ -378,7 +378,7 @@ commands() ->
"only keep the resource with the highest "
"non-negative priority.",
module = ?MODULE, function = get_roster_with_presence,
args = [{user, string}, {server, string}],
args = [{user, binary}, {server, binary}],
result =
{contacts,
{list,
@ -413,7 +413,7 @@ commands() ->
"connected)\n\n'status' is a free text "
"defined by the user client.",
module = ?MODULE, function = get_presence,
args = [{user, string}, {server, string}],
args = [{user, binary}, {server, binary}],
result =
{presence,
{tuple,
@ -423,28 +423,28 @@ commands() ->
tags = [session],
desc = "Get all available resources for a given user",
module = ?MODULE, function = get_resources,
args = [{user, string}, {server, string}],
args = [{user, binary}, {server, binary}],
result = {resources, {list, {resource, string}}}},
#ejabberd_commands{name = transport_register,
tags = [transports],
desc = "Register a user in a transport",
module = ?MODULE, function = transport_register,
args =
[{host, string}, {transport, string},
{jidstring, string}, {username, string},
{password, string}],
[{host, binary}, {transport, binary},
{jidstring, binary}, {username, binary},
{password, binary}],
result = {res, string}},
#ejabberd_commands{name = send_chat, tags = [stanza],
desc = "Send chat message to a given user",
module = ?MODULE, function = send_chat,
args = [{from, string}, {to, string}, {body, string}],
args = [{from, binary}, {to, binary}, {body, binary}],
result = {res, integer}},
#ejabberd_commands{name = send_message, tags = [stanza],
desc = "Send normal message to a given user",
module = ?MODULE, function = send_message,
args =
[{from, string}, {to, string}, {subject, string},
{body, string}],
[{from, binary}, {to, binary}, {subject, binary},
{body, binary}],
result = {res, integer}},
#ejabberd_commands{name = send_stanza, tags = [stanza],
desc = "Send stanza to a given user",
@ -455,8 +455,8 @@ commands() ->
"it overrides the passed to argument.",
module = ?MODULE, function = send_stanza,
args =
[{user, string}, {server, string},
{stanza, string}],
[{user, binary}, {server, binary},
{stanza, binary}],
result = {res, integer}}].
%%%