summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-31 00:20:20 -0500
committerAdam <Adam@anope.org>2013-03-31 00:43:11 -0500
commit6e0dc0e2103494d50dd4bd9920550d1653365f05 (patch)
tree10b89c24cae17069a0cc97db376d960220f7089d /src/protocol.cpp
parent7e7556f06445d4d8e607ef514c9fb5009899db73 (diff)
Add networkinfo:modelistsize config option to set the max size of b/e/I lists
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index c14f1ee68..35f302ba8 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -385,6 +385,11 @@ void IRCDProto::SendOper(User *u)
u->SetMode(OperServ, "OPER");
}
+unsigned IRCDProto::GetMaxListFor(Channel *c)
+{
+ return c->HasMode("LBAN") ? 0 : Config->ListSize;
+}
+
MessageSource::MessageSource(const Anope::string &src) : source(src), u(NULL), s(NULL)
{
if (src.empty())