From 27ca859c29f7d8cc9ed7ad6891e42766b9da4597 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 1 Oct 2018 14:08:31 +0100 Subject: Fix the delayjoin module not hiding JOIN messages properly. --- src/modules/m_delayjoin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp index d157b97bc..db7cf40d5 100644 --- a/src/modules/m_delayjoin.cpp +++ b/src/modules/m_delayjoin.cpp @@ -56,8 +56,9 @@ class JoinHook : public ClientProtocol::EventHook ModResult OnPreEventSend(LocalUser* user, const ClientProtocol::Event& ev, ClientProtocol::MessageList& messagelist) CXX11_OVERRIDE { const ClientProtocol::Events::Join& join = static_cast(ev); - const User* const u = join.GetMember()->user; - if ((unjoined.get(u)) && (u != user)) + const Membership* const memb = join.GetMember(); + const User* const u = memb->user; + if ((unjoined.get(memb)) && (u != user)) return MOD_RES_DENY; return MOD_RES_PASSTHRU; } -- cgit v1.2.3