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:
parent
a4cb296099
commit
cd477e8ce7
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue