From edd159566de1cdae6f39302961a10e1800b0ff2c Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 4 Jul 2012 19:12:00 +0200 Subject: m_delaymsg Stop sending +d mode change to users when a remote user joins a channel with +d on it --- src/modules/m_delaymsg.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index c0ff09ccf..cc09629e3 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -61,6 +61,9 @@ ModeAction DelayMsgMode::OnModeChange(User* source, User* dest, Channel* channel { if (adding) { + if ((channel->IsModeSet('d')) && (channel->GetModeParameter('d') == parameter)) + return MODEACTION_DENY; + /* Setting a new limit, sanity check */ long limit = atoi(parameter.c_str()); -- cgit v1.2.3