diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-06 19:27:32 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-06 19:27:32 +0000 |
| commit | 4099944013af67964be367b66b170edfb0db2404 (patch) | |
| tree | e942353b51002d71d30b281e6ed563e7b2ecd2f6 /src/protocol/inspircd12.cpp | |
| parent | 87b62c433d3abdf92b8d55987f76553d9422c3d2 (diff) | |
Recieve the max number of modes we can set at once from the IRCd and use it
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2783 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd12.cpp')
| -rw-r--r-- | src/protocol/inspircd12.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 3c5f4202c..27acf77a2 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -73,6 +73,7 @@ IRCDVar myIrcd[] = { 1, /* CIDR channelbans */ "$", /* TLD Prefix for Global */ true, /* Auth for users is sent after the initial NICK/UID command */ + 20, /* Max number of modes we can send per line */ } , {NULL} @@ -1266,6 +1267,11 @@ int anope_event_capab(const char *source, int ac, const char **av) } } } + else if (capab.find("MAXMODES=") != std::string::npos) + { + std::string maxmodes(capab.begin() + 10, capab.end()); + ircd->maxmodes = atoi(maxmodes.c_str()); + } } } else if (strcasecmp(av[0], "END") == 0) { if (!has_globopsmod) { |
