mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 16:52:44 +01:00
modules/console: Fix argument interpretation to make the state::space key properly.
This commit is contained in:
parent
6e49f8ae6b
commit
a49560cd1a
1 changed files with 5 additions and 3 deletions
|
@ -9062,15 +9062,17 @@ console_cmd__room__state__space(opt &out, const string_view &line)
|
||||||
|
|
||||||
const string_view &type
|
const string_view &type
|
||||||
{
|
{
|
||||||
param["type"]
|
param["type"] != "*"?
|
||||||
|
param["type"] : string_view{},
|
||||||
};
|
};
|
||||||
|
|
||||||
const string_view &state_key
|
const string_view &state_key
|
||||||
{
|
{
|
||||||
param["state_key"]
|
param["state_key"] != "\"\""?
|
||||||
|
param["state_key"] : string_view{},
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto depth
|
const int64_t depth
|
||||||
{
|
{
|
||||||
param.at("depth", -1L)
|
param.at("depth", -1L)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue