0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

modules/console: Allow empty arguments to fed cmd.

This commit is contained in:
Jason Volk 2019-04-22 18:20:06 -07:00
parent d417c7779e
commit 58384a25c7

View file

@ -11419,12 +11419,16 @@ console_cmd__fed__frontfill(opt &out, const string_view &line)
const m::event::id &earliest
{
param.at(2)
param["earliest"] == "*"?
m::event::id{}:
param.at(2, m::event::id{})
};
const m::event::id::buf &latest
const m::event::id &latest
{
param.at(3, m::head(std::nothrow, room_id))
param["latest"] == "*"?
m::event::id{}:
param.at(3, m::event::id{})
};
const auto &limit