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

ircd:Ⓜ️:user::pushrules: Fix throwing query in nothrow getter.

This commit is contained in:
Jason Volk 2020-03-22 13:55:29 -07:00
parent 55396a9a76
commit a7a67b0689

View file

@ -151,7 +151,7 @@ const
const event::idx &event_idx
{
user_room.get(type, ruleid)
user_room.get(std::nothrow, type, ruleid)
};
return m::get(std::nothrow, event_idx, "content", [&path, &closure]
@ -180,7 +180,10 @@ const
// If the path contains a ruleid there's at most one item to iterate...
if(ruleid)
return get(std::nothrow, path, closure);
{
get(std::nothrow, path, closure);
return true;
}
// Present the default rules to the closure; note that the for_each
// convention dictates if the user's closure returns false we'll never