Exported kick_sessions in mod_admin_extra

This commit is contained in:
Emiliano Bonassi 2014-12-31 17:17:13 +01:00
parent bdac50591a
commit b36b766420
1 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,7 @@
num_resources/2,
resource_num/3,
kick_session/4,
kick_sessions/3,
status_num/2, status_num/1,
status_list/2, status_list/1,
connected_users_info/0,
@ -221,6 +222,11 @@ commands() ->
module = ?MODULE, function = kick_session,
args = [{user, binary}, {host, binary}, {resource, binary}, {reason, binary}],
result = {res, rescode}},
#ejabberd_commands{name = kick_sessions, tags = [session],
desc = "Kick all user sessions",
module = ?MODULE, function = kick_sessions,
args = [{user, binary}, {host, binary}, {reason, binary}],
result = {res, rescode}},
#ejabberd_commands{name = status_num_host, tags = [session, stats],
desc = "Number of logged users with this status in host",
module = ?MODULE, function = status_num,