From ad2f737405c9352326440984aff004ce84fc1d87 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 20 Jun 2021 01:28:20 +0100 Subject: Show delayjoined users to themself in WHO. --- src/modules/m_delayjoin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_delayjoin.cpp') diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index d58f07c2b..d7f9e5a6e 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -161,8 +161,8 @@ ModResult ModuleDelayJoin::OnWhoLine(const Who::Request& request, LocalUser* sou if (!memb || !unjoined.get(memb)) return MOD_RES_PASSTHRU; - // Only show delayjoined users if the d flag has been specified. - if (!request.flags['d']) + // Only show delayjoined users to others if the d flag has been specified. + if (source != user && !request.flags['d']) return MOD_RES_DENY; // Add the < flag to mark the user as delayjoined. -- cgit v1.3.1-10-gc9f91