From b9b3f9f00e45eca660d51119bf3759d2a779aff4 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 13 Jul 2019 20:01:47 -0700 Subject: [PATCH] ircd::m: Fix my(event) conditions regression. --- ircd/m_event.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircd/m_event.cc b/ircd/m_event.cc index fed25dad8..102fbeea0 100644 --- a/ircd/m_event.cc +++ b/ircd/m_event.cc @@ -3947,10 +3947,13 @@ bool ircd::m::my(const event &event) { const auto &origin(json::get<"origin"_>(event)); + const auto &sender(json::get<"sender"_>(event)); const auto &eid(event.event_id); return origin? my_host(origin): + sender? + my_host(user::id(sender).host()): eid? my(event::id(eid)): false;