diff options
| author | 2012-06-24 16:06:58 +0200 | |
|---|---|---|
| committer | 2012-06-30 00:14:54 +0200 | |
| commit | 2c234e7f816b0031d8042d37d391f4acf95a4107 (patch) | |
| tree | dcd4bb2321d5716de22a7e6c4d8c1723f6349d95 /src/modules/m_delaymsg.cpp | |
| parent | m_nonicks Use SimpleChannelModeHandler (diff) | |
m_delaymsg Don't allow mode to be unset when it's not set
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
| -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 */ |
