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/modes.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/modes.cpp')
-rw-r--r-- | src/modes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes.cpp b/src/modes.cpp index 0c259ea7c..c915ca351 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -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 = "-"; |