diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-06-24 16:06:58 +0200 |
---|---|---|
committer | Robin Burchell <robin+git@viroteck.net> | 2012-06-30 00:14:54 +0200 |
commit | 2c234e7f816b0031d8042d37d391f4acf95a4107 (patch) | |
tree | dcd4bb2321d5716de22a7e6c4d8c1723f6349d95 /src | |
parent | c71942c2ee6c73776b5e11d2bc9888f44dc3409d (diff) |
m_delaymsg Don't allow mode to be unset when it's not set
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_delaymsg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index 6ef955a9f..baa6355ad 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -76,6 +76,9 @@ ModeAction DelayMsgMode::OnModeChange(User* source, User* dest, Channel* channel } else { + if (!channel->IsModeSet('d')) + return MODEACTION_DENY; + /* * Clean up metadata */ |