0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd:Ⓜ️:push: Log a debug error for unknown condition kinds.

This commit is contained in:
Jason Volk 2020-03-22 14:13:05 -07:00
parent 6774ac742a
commit 643efbfad7

View file

@ -396,6 +396,19 @@ ircd::m::push::unknown_condition_kind(const event &event,
const cond &cond,
const match::opts &opts)
{
const string_view &kind
{
json::get<"kind"_>(cond)
};
log::derror
{
log, "Push condition for %s by %s :unknown kind '%s' rule always fails...",
string_view{event.event_id},
string_view{opts.user_id},
kind,
};
return false;
}