1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 07:16:39 +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:
Adam-
2010-02-06 19:27:32 +00:00
parent 87b62c433d
commit 4099944013
8 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -484,7 +484,7 @@ std::list<std::string> ModeManager::BuildModeStrings(StackerInfo *info)
buf = "+";
for (it = info->AddModes.begin(); it != info->AddModes.end(); ++it)
{
if (++Modes > 12) //XXX this number needs to be recieved from the ircd
if (++Modes > ircd->maxmodes)
{
ret.push_back(buf + parambuf);
buf = "+";
@@ -513,7 +513,7 @@ std::list<std::string> ModeManager::BuildModeStrings(StackerInfo *info)
buf += "-";
for (it = info->DelModes.begin(); it != info->DelModes.end(); ++it)
{
if (++Modes > 12) //XXX this number needs to be recieved from the ircd
if (++Modes > ircd->maxmodes)
{
ret.push_back(buf + parambuf);
buf = "-";