summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 18:32:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-08 18:32:32 +0000
commit05f550dd7dd322257b444452a9c32bebe4061187 (patch)
treeece56b5dded7367693eb2e4fa3f7fd8a69c4c83c /src/modules/m_spanningtree.cpp
parent4d43a245ad42b96e5f73c44b88e46419ca016d0c (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree.cpp')
-rw-r--r--src/modules/m_spanningtree.cpp13
1 files changed, 12 insertions, 1 deletions
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.