diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-08-28 13:51:06 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-08-28 13:51:06 -0400 |
commit | e8f873a96c7cd41b52e25131b0e938ce28ebc1cb (patch) | |
tree | 0fdde3cfe27f180f6431900b94f9ef3f2e856299 | |
parent | f47824d325480367ef05cb7910598bda709feed0 (diff) |
Prevent setting mode -H if already unset, bug #74
-rw-r--r-- | src/modules/m_chanhistory.cpp | 2 |
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', ""); } |