mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 16:30:52 +01:00
modules/console: Preliminary rooms list base command.
This commit is contained in:
parent
fe90dd4d63
commit
4b201b026e
1 changed files with 16 additions and 0 deletions
|
@ -1443,6 +1443,22 @@ console_cmd__exec__file(opt &out, const string_view &line)
|
|||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// rooms
|
||||
//
|
||||
|
||||
bool
|
||||
console_cmd__rooms(opt &out, const string_view &line)
|
||||
{
|
||||
m::rooms::for_each(m::room::id::closure{[&out]
|
||||
(const m::room::id &room_id)
|
||||
{
|
||||
out << room_id << std::endl;
|
||||
}});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// room
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue