From b73c467fae899dffd8a5e782042ba334dd230c01 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 11 Sep 2019 10:59:39 -0700 Subject: [PATCH] ircd::m: Make more efficient members queries. --- ircd/m_room.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ircd/m_room.cc b/ircd/m_room.cc index d131e872c..4a0b5adde 100644 --- a/ircd/m_room.cc +++ b/ircd/m_room.cc @@ -1097,11 +1097,7 @@ ircd::m::local_joined(const room &room) room }; - return !members.for_each("join", [] - (const id::user &user_id) - { - return my(user_id)? false : true; // false to break. - }); + return !members.empty("join", my_host()); } /// Member(s) from another server are presently joined to the room. For example