summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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);
}