Exported kick_sessions in mod_admin_extra
This commit is contained in:
parent
bdac50591a
commit
b36b766420
|
@ -47,7 +47,8 @@
|
||||||
num_resources/2,
|
num_resources/2,
|
||||||
resource_num/3,
|
resource_num/3,
|
||||||
kick_session/4,
|
kick_session/4,
|
||||||
status_num/2, status_num/1,
|
kick_sessions/3,
|
||||||
|
status_num/2, status_num/1,
|
||||||
status_list/2, status_list/1,
|
status_list/2, status_list/1,
|
||||||
connected_users_info/0,
|
connected_users_info/0,
|
||||||
connected_users_vhost/1,
|
connected_users_vhost/1,
|
||||||
|
@ -221,6 +222,11 @@ commands() ->
|
||||||
module = ?MODULE, function = kick_session,
|
module = ?MODULE, function = kick_session,
|
||||||
args = [{user, binary}, {host, binary}, {resource, binary}, {reason, binary}],
|
args = [{user, binary}, {host, binary}, {resource, binary}, {reason, binary}],
|
||||||
result = {res, rescode}},
|
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],
|
#ejabberd_commands{name = status_num_host, tags = [session, stats],
|
||||||
desc = "Number of logged users with this status in host",
|
desc = "Number of logged users with this status in host",
|
||||||
module = ?MODULE, function = status_num,
|
module = ?MODULE, function = status_num,
|
||||||
|
|
Loading…
Reference in New Issue