mirror of
https://github.com/anope/anope.git
synced 2026-07-07 02:03:15 +02:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user