From 2bc795b883727a282b7a30270870e045b40da17a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 7 Aug 2019 01:24:16 -0700 Subject: [PATCH] ircd::m::event::auth: Call the auth hook for unenumerated/additional types. --- ircd/m_event.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ircd/m_event.cc b/ircd/m_event.cc index 5bb320937..fd9a5949a 100644 --- a/ircd/m_event.cc +++ b/ircd/m_event.cc @@ -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);