mirror of
https://github.com/matrix-construct/construct
synced 2024-07-05 10:08:36 +02:00
modules/console: Fix argument interpretation to make the state::space key properly.
This commit is contained in:
parent
6e49f8ae6b
commit
a49560cd1a
|
@ -9062,15 +9062,17 @@ console_cmd__room__state__space(opt &out, const string_view &line)
|
|||
|
||||
const string_view &type
|
||||
{
|
||||
param["type"]
|
||||
param["type"] != "*"?
|
||||
param["type"] : string_view{},
|
||||
};
|
||||
|
||||
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)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue