0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd:Ⓜ️:acquire: Add options to toggle operations.

This commit is contained in:
Jason Volk 2020-05-09 19:01:25 -07:00
parent ed931bcf6e
commit befe43f45a
2 changed files with 14 additions and 4 deletions

View file

@ -29,4 +29,8 @@ struct ircd::m::acquire::opts
string_view hint;
bool hint_only {false};
bool head {false};
bool missing {false};
};

View file

@ -29,11 +29,17 @@ ircd::m::acquire::log
ircd::m::acquire::acquire::acquire(const room &room,
const opts &opts)
{
handle_room(room, opts);
ctx::interruption_point();
if(opts.head)
{
handle_room(room, opts);
ctx::interruption_point();
}
handle_missing(room, opts);
ctx::interruption_point();
if(opts.missing)
{
handle_missing(room, opts);
ctx::interruption_point();
}
}
//