summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-04 14:36:00 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-04 14:36:00 +0000
commit0fad0eb82b396b2f3c72e9d429bde032b564683c (patch)
treecca6dd68f5900e27e8c7a3cfc4a48a477911d642
parentc66e272f93d97ebe4c730814f5058d65481e45c6 (diff)
Fix wrapping check so we waste slightly fewer lines in syncing ban lists via FMODE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12371 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree/netburst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index 4a894f78a..3a04ff63d 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -144,7 +144,7 @@ void TreeSocket::SendFJoins(TreeServer* Current, Channel* c)
params.append(" ").append(b->data);
linesize += size;
}
- if ((params.length() >= ServerInstance->Config->Limits.MaxModes) || (currsize > 350))
+ if ((modes.length() >= ServerInstance->Config->Limits.MaxModes) || (currsize > 350))
{
/* Wrap at MAXMODES */
buffer.append(":").append(ServerInstance->Config->GetSID()).append(" FMODE ").append(c->name).append(" ").append(ConvToStr(c->age)).append(" +").append(modes).append(params).append("\r\n");