diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-15 16:39:28 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-15 16:39:28 +0000 |
commit | 065d1788b602c807a4d669ba413a175c0059e357 (patch) | |
tree | 0c1ad3edfea195a68544732dd87df0740b0111e1 | |
parent | 5eb024c601db0a8ded7e812c8f823a53275d2731 (diff) |
Deny identical mode +H change
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12466 e03df62e-2008-0410-955e-edbf42e46eb7
-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 c25dcb603..bb7bbc9aa 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -47,6 +47,8 @@ class HistoryMode : public ModeHandler int time = ServerInstance->Duration(parameter.substr(colon+1)); if (len <= 0 || time < 0 || len > 50) return MODEACTION_DENY; + if (parameter == channel->GetModeParameter(this)) + return MODEACTION_DENY; ext.set(channel, new HistoryList(len, time)); channel->SetModeParam('H', parameter); } |