From: danieldg Date: Mon, 15 Feb 2010 16:39:28 +0000 (+0000) Subject: Deny identical mode +H change X-Git-Tag: v2.0.23~1050 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=065d1788b602c807a4d669ba413a175c0059e357;p=user%2Fhenk%2Fcode%2Finspircd.git Deny identical mode +H change git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12466 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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); }