From 748b3a0d89e7ecc9a766471b79fb78f63a5ca2bb Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 12 Feb 2016 18:30:01 +0100 Subject: m_dccallow Add config option to control max entries on a list Default to 20 --- docs/conf/modules.conf.example | 3 ++- src/modules/m_dccallow.cpp | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example index 98b614acd..97d69da90 100644 --- a/docs/conf/modules.conf.example +++ b/docs/conf/modules.conf.example @@ -671,6 +671,7 @@ # length - Default duration of entries in DCCALLOW list. # action - Default action to take if no action is # specified, can be 'block' or 'allow'. +# maxentries - Max number of nicks to allow on a DCCALLOW list. # # File configuration: # pattern - The glob pattern to match against. @@ -678,7 +679,7 @@ # that matches this pattern, can be 'block' or # 'allow'. # -# +# # # diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 829c1d337..043486283 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -58,6 +58,7 @@ SimpleExtItem* ext; class CommandDccallow : public Command { public: + unsigned int maxentries; CommandDccallow(Module* parent) : Command(parent, "DCCALLOW", 0) { syntax = "[(+|-) [