0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

modules/console: Add some basic feedback on user mxid cmd.

This commit is contained in:
Jason Volk 2019-08-11 22:44:07 -07:00
parent a4cb296099
commit cd477e8ce7

View file

@ -10096,6 +10096,18 @@ console_id__user(opt &out,
const m::user::id &id,
const string_view &args)
{
const bool exists
{
m::exists(id)
};
if(!exists)
throw m::NOT_FOUND
{
"User %s is not known to this server.",
string_view{id},
};
return true;
}