0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

modules/console: Default to local users for users cmd.

This commit is contained in:
Jason Volk 2019-09-16 14:08:29 -07:00
parent b0c386d54a
commit c0f4640a74

View file

@ -11557,11 +11557,14 @@ console_cmd__users(opt &out, const string_view &line)
param.at("query", string_view{})
};
const m::users::opts opts
m::users::opts opts
{
query
};
if(!query || query != "*")
opts.hostpart = my_host();
m::users::for_each(opts, [&out]
(const m::user &user)
{