From 0fad0eb82b396b2f3c72e9d429bde032b564683c Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 4 Feb 2010 14:36:00 +0000 Subject: 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 --- src/modules/m_spanningtree/netburst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3