0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 13:48:53 +02:00

modules/console: Add room head count cmd.

This commit is contained in:
Jason Volk 2019-08-20 01:25:18 -07:00
parent ac03c9a13b
commit 9a0e9c0356

View file

@ -7838,6 +7838,28 @@ console_cmd__room__head(opt &out, const string_view &line)
return true;
}
bool
console_cmd__room__head__count(opt &out, const string_view &line)
{
const auto &room_id
{
m::room_id(token(line, ' ', 0))
};
const m::room room
{
room_id
};
const m::room::head head
{
room
};
out << head.count() << std::endl;
return true;
}
bool
console_cmd__room__head__rebuild(opt &out, const string_view &line)
{