From 2c234e7f816b0031d8042d37d391f4acf95a4107 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 24 Jun 2012 16:06:58 +0200 Subject: m_delaymsg Don't allow mode to be unset when it's not set --- src/modules/m_delaymsg.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3