]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Only check for a join time if a user is actually in the channel.
authorSadie Powell <sadie@witchery.services>
Sat, 22 May 2021 05:29:50 +0000 (06:29 +0100)
committerSadie Powell <sadie@witchery.services>
Sat, 22 May 2021 05:29:50 +0000 (06:29 +0100)
src/modules/m_delayjoin.cpp

index 55398710cf07070a94827edf03bf9f49fb206c73..72bdad1551ae0368f0ef38493797559f430ad644 100644 (file)
@@ -213,8 +213,11 @@ void ModuleDelayJoin::OnUserMessage(User* user, const MessageTarget& target, con
 void DelayJoinMode::RevealUser(User* user, Channel* chan)
 {
        Membership* memb = chan->GetUser(user);
+       if (!memb)
+               return;
+
        time_t jointime = unjoined.set(memb, 0);
-       if (!memb || !jointime)
+       if (!jointime)
                return;
 
        /* Display the join to everyone else (the user who joined got it earlier) */