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:
parent
ac03c9a13b
commit
9a0e9c0356
1 changed files with 22 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue