From b36b76642071bf84de34c729c87a17e97e4e7017 Mon Sep 17 00:00:00 2001 From: Emiliano Bonassi Date: Wed, 31 Dec 2014 17:17:13 +0100 Subject: [PATCH] Exported kick_sessions in mod_admin_extra --- mod_admin_extra/src/mod_admin_extra.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index 63703ec..9a1d350 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/src/mod_admin_extra.erl @@ -47,7 +47,8 @@ num_resources/2, resource_num/3, kick_session/4, - status_num/2, status_num/1, + kick_sessions/3, + status_num/2, status_num/1, status_list/2, status_list/1, connected_users_info/0, connected_users_vhost/1, @@ -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,