mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix the delayjoin module not hiding JOIN messages properly.
This commit is contained in:
parent
75e144b55e
commit
27ca859c29
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user