0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01:00

modules/console: Stub command-by device_id handler.

This commit is contained in:
Jason Volk 2019-05-27 16:13:40 -07:00
parent b403fbc421
commit 3060bc2941

View file

@ -353,6 +353,7 @@ int console_command_numeric(opt &, const string_view &line);
bool console_id__user(opt &, const m::user::id &id, const string_view &line); bool console_id__user(opt &, const m::user::id &id, const string_view &line);
bool console_id__room(opt &, const m::room::id &id, const string_view &line); bool console_id__room(opt &, const m::room::id &id, const string_view &line);
bool console_id__event(opt &, const m::event::id &id, const string_view &line); bool console_id__event(opt &, const m::event::id &id, const string_view &line);
bool console_id__device(opt &, const m::device::id &id, const string_view &line);
bool console_json(const json::object &); bool console_json(const json::object &);
int int
@ -380,6 +381,9 @@ console_command_derived(opt &out, const string_view &line)
case m::id::USER: case m::id::USER:
return console_id__user(out, id, line); return console_id__user(out, id, line);
case m::id::DEVICE:
return console_id__device(out, id, line);
case m::id::ROOM_ALIAS: case m::id::ROOM_ALIAS:
{ {
const auto room_id{m::room_id(id)}; const auto room_id{m::room_id(id)};
@ -10619,6 +10623,14 @@ console_cmd__user__devices(opt &out, const string_view &line)
return true; return true;
} }
bool
console_id__device(opt &out,
const m::device::id &id,
const string_view &line)
{
return true;
}
bool bool
console_cmd__user__ignores(opt &out, const string_view &line) console_cmd__user__ignores(opt &out, const string_view &line)
{ {