0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd:Ⓜ️:event::auth: Call the auth hook for unenumerated/additional types.

This commit is contained in:
Jason Volk 2019-08-07 01:24:16 -07:00
parent bfe1eace7d
commit 2bc795b883

View file

@ -1761,6 +1761,11 @@ try
return {data.allow, data.fail};
}
// (non-spec) Call the hook for any types without a branch enumerated
// here. The handler will throw on a failure, otherwise fallthrough to
// the next rule.
event_auth_hook(event, data);
// 12. Otherwise, allow.
data.allow = true;
assert(!data.fail);