summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-08-28 13:51:06 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-08-28 13:51:06 -0400
commite8f873a96c7cd41b52e25131b0e938ce28ebc1cb (patch)
tree0fdde3cfe27f180f6431900b94f9ef3f2e856299 /src
parentf47824d325480367ef05cb7910598bda709feed0 (diff)
Prevent setting mode -H if already unset, bug #74
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanhistory.cpp2
1 files changed, 2 insertions, 0 deletions
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', "");
}