From 065d1788b602c807a4d669ba413a175c0059e357 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 15 Feb 2010 16:39:28 +0000 Subject: Deny identical mode +H change git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12466 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanhistory.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3