]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added burst flag -- remote connect notices not shown during burst
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 8 Dec 2005 18:32:32 +0000 (18:32 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 8 Dec 2005 18:32:32 +0000 (18:32 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2276 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 54a85cb023afbadd8b72a63668f761179f41a8e7..1424739ecac678deef11570bc88eaec4971b017c 100644 (file)
@@ -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.