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

This commit is contained in:
attilamolnar 2012-06-24 16:06:58 +02:00 committed by Robin Burchell
parent c71942c2ee
commit 2c234e7f81

View File

@ -76,6 +76,9 @@ ModeAction DelayMsgMode::OnModeChange(User* source, User* dest, Channel* channel
}
else
{
if (!channel->IsModeSet('d'))
return MODEACTION_DENY;
/*
* Clean up metadata
*/