From e8f873a96c7cd41b52e25131b0e938ce28ebc1cb Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 28 Aug 2010 13:51:06 -0400 Subject: Prevent setting mode -H if already unset, bug #74 --- src/modules/m_chanhistory.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index caa3c1e8b..cfc418cb0 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -59,6 +59,8 @@ class HistoryMode : public ModeHandler } else { + if (!channel->IsModeSet('H')) + return MODEACTION_DENY; ext.unset(channel); channel->SetModeParam('H', ""); } -- cgit v1.2.3