From 05f550dd7dd322257b444452a9c32bebe4061187 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Dec 2005 18:32:32 +0000 Subject: Added burst flag -- remote connect notices not shown during burst git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2276 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 54a85cb02..1424739ec 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -527,6 +527,7 @@ class TreeSocket : public InspSocket int num_lost_servers; time_t NextPing; bool LastPingWasGood; + bool Bursting; public: @@ -936,7 +937,10 @@ class TreeSocket : public InspSocket clientlist[tempnick]->chans[i].channel = NULL; clientlist[tempnick]->chans[i].uc_modes = 0; } - WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",clientlist[tempnick]->server,clientlist[tempnick]->nick,clientlist[tempnick]->ident,clientlist[tempnick]->host,clientlist[tempnick]->ip); + if (!this->bursting) + { + WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",clientlist[tempnick]->server,clientlist[tempnick]->nick,clientlist[tempnick]->ident,clientlist[tempnick]->host,clientlist[tempnick]->ip); + } params[7] = ":" + params[7]; DoOneToAllButSender(source,"NICK",params,source); return true; @@ -1428,6 +1432,7 @@ class TreeSocket : public InspSocket TreeRoot->AddChild(Node); params[3] = ":" + params[3]; DoOneToAllButSender(TreeRoot->GetName(),"SERVER",params,servername); + this->bursting = true; this->DoBurst(Node); return true; } @@ -1592,6 +1597,7 @@ class TreeSocket : public InspSocket params.push_back("1"); params.push_back(":"+InboundDescription); DoOneToAllButSender(TreeRoot->GetName(),"SERVER",params,InboundServerName); + this->bursting = true; this->DoBurst(Node); } else if (command == "ERROR") @@ -1723,6 +1729,11 @@ class TreeSocket : public InspSocket } return true; } + else if (command == "ENDBURST") + { + this->bursting = false; + return true; + } else { // not a special inter-server command. -- cgit v1.2.3