diff options
author | Peter Powell <petpow@saberuk.com> | 2018-10-01 14:08:31 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-01 14:08:31 +0100 |
commit | 27ca859c29f7d8cc9ed7ad6891e42766b9da4597 (patch) | |
tree | a47ebabc2d30dabdbd76ba3014348e29b4bc9c34 /src | |
parent | 75e144b55e761b663958599dc40dc8fd670445db (diff) |
Fix the delayjoin module not hiding JOIN messages properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_delayjoin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<const ClientProtocol::Events::Join&>(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; } |