0
0
Fork 0
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:
Jason Volk 2018-04-09 19:39:59 -07:00
parent fe90dd4d63
commit 4b201b026e

View file

@ -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
//