From 531e67935ecb47c2d7658d715abdc523075e66bb Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 16 Feb 2008 21:36:35 +0000 Subject: Backport SendXLines() fix on netburst (don't buffer loads of lines at once), and fix: don't propegate K:Lines on netburst git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8948 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/netburst.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp index 9e9d3a3b8..e9366ef71 100644 --- a/src/modules/m_spanningtree/netburst.cpp +++ b/src/modules/m_spanningtree/netburst.cpp @@ -151,7 +151,6 @@ void TreeSocket::SendFJoins(TreeServer* Current, Channel* c) void TreeSocket::SendXLines(TreeServer* Current) { char data[MAXBUF]; - std::string buffer; std::string n = this->Instance->Config->GetSID(); const char* sn = n.c_str(); @@ -165,18 +164,18 @@ void TreeSocket::SendXLines(TreeServer* Current) { for (LookupIter i = lookup->begin(); i != lookup->end(); ++i) { + if (i->second->type == "K") + continue; + snprintf(data,MAXBUF,":%s ADDLINE %s %s %s %lu %lu :%s\r\n",sn, it->c_str(), i->second->Displayable(), i->second->source, (unsigned long)i->second->set_time, (unsigned long)i->second->duration, i->second->reason); - buffer.append(data); + this->WriteLine(data); } } } - - if (!buffer.empty()) - this->WriteLine(buffer); } /** Send channel modes and topics */ -- cgit v1.2.3