Merge pull request #39 from weiss/fix-stats-arg-types

mod_admin_extra: Fix argument types
This commit is contained in:
badlop 2014-06-12 13:27:07 +02:00
commit ba64c794c7
1 changed files with 2 additions and 2 deletions

View File

@ -532,12 +532,12 @@ commands() ->
#ejabberd_commands{name = stats, tags = [stats], #ejabberd_commands{name = stats, tags = [stats],
desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds", desc = "Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds",
module = ?MODULE, function = stats, module = ?MODULE, function = stats,
args = [{name, string}], args = [{name, binary}],
result = {stat, integer}}, result = {stat, integer}},
#ejabberd_commands{name = stats_host, tags = [stats], #ejabberd_commands{name = stats_host, tags = [stats],
desc = "Get statistical value for this host: registeredusers onlineusers", desc = "Get statistical value for this host: registeredusers onlineusers",
module = ?MODULE, function = stats, module = ?MODULE, function = stats,
args = [{name, string}, {host, string}], args = [{name, binary}, {host, binary}],
result = {stat, integer}} result = {stat, integer}}
]. ].