summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-04 19:12:00 +0200
committerattilamolnar <attilamolnar@hush.com>2012-07-04 19:19:55 +0200
commitedd159566de1cdae6f39302961a10e1800b0ff2c (patch)
tree0199e9b3e88f6d0bcf8ec989fc3556141f30645b /src
parent65b0aa4d5feb8aaf90e60c654636f547ea047682 (diff)
m_delaymsg Stop sending +d mode change to users when a remote user joins a channel with +d on it
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_delaymsg.cpp3
1 files changed, 3 insertions, 0 deletions
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());