Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

m_delaymsg Don't allow mode to be unset when it's not set

  • Loading branch information...
commit 2c234e7f816b0031d8042d37d391f4acf95a4107 1 parent c71942c
@attilamolnar attilamolnar authored rburchell committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/modules/m_delaymsg.cpp
View
3  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
*/
Please sign in to comment.
Something went wrong with that request. Please try again.