diff options
| author | Adam <Adam@anope.org> | 2013-03-31 00:20:20 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-03-31 00:43:11 -0500 |
| commit | 6e0dc0e2103494d50dd4bd9920550d1653365f05 (patch) | |
| tree | 10b89c24cae17069a0cc97db376d960220f7089d /include | |
| parent | 7e7556f06445d4d8e607ef514c9fb5009899db73 (diff) | |
Add networkinfo:modelistsize config option to set the max size of b/e/I lists
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 2 | ||||
| -rw-r--r-- | include/protocol.h | 5 |
2 files changed, 7 insertions, 0 deletions
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 |
