From 6e0dc0e2103494d50dd4bd9920550d1653365f05 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 31 Mar 2013 00:20:20 -0500 Subject: Add networkinfo:modelistsize config option to set the max size of b/e/I lists --- include/config.h | 2 ++ include/protocol.h | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 4ea182c0d..36a4836c8 100644 --- a/include/config.h +++ b/include/config.h @@ -375,6 +375,8 @@ class CoreExport ServerConfig unsigned HostLen; /* Max length of channel names */ unsigned ChanLen; + /* Max length of b/e/I lists */ + unsigned ListSize; /* User and group to run as */ Anope::string User; diff --git a/include/protocol.h b/include/protocol.h index 9ff0167c9..8953d25e5 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -223,6 +223,11 @@ class CoreExport IRCDProto : public Service virtual bool IsIdentValid(const Anope::string &); virtual bool IsHostValid(const Anope::string &); virtual bool IsExtbanValid(const Anope::string &) { return false; } + + /** Retrieve the maximum number of list modes settable on this channel + * Defaults to Config->ListSize + */ + virtual unsigned GetMaxListFor(Channel *c); }; class CoreExport MessageSource -- cgit