diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-14 14:31:48 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-14 14:31:48 +0000 |
commit | 2c3f10316c1fcfd137d83ecfe302d3ffeaad3e6f (patch) | |
tree | d7be04d97116ce7132b14e26283f7b6bcfabb02a /src/modules/m_spanningtree/opertype.cpp | |
parent | d1bfdcb61347264fbef6656de88ab6e30d9fc617 (diff) |
Revert r11194 "Quiet bursts for uplinks, suggested by HiroP, thanks!"
This check on uplink was not sufficient. It has been replaced by marking
children of a bursting server as bursting, so the uplink is no longer needed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11218 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/opertype.cpp')
-rw-r--r-- | src/modules/m_spanningtree/opertype.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/opertype.cpp b/src/modules/m_spanningtree/opertype.cpp index c76425fda..62016ccaf 100644 --- a/src/modules/m_spanningtree/opertype.cpp +++ b/src/modules/m_spanningtree/opertype.cpp @@ -24,7 +24,7 @@ /** Because the core won't let users or even SERVERS set +o, * we use the OPERTYPE command to do this. */ -bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> ¶ms, const std::string &up) +bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> ¶ms) { if (params.size() != 1) return true; @@ -39,17 +39,16 @@ bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> &pa Utils->DoOneToAllButSender(u->uuid, "OPERTYPE", params, u->server); TreeServer* remoteserver = Utils->FindServer(u->server); - TreeServer* uplink = Utils->FindServer(up); bool dosend = true; - if (this->Utils->quiet_bursts && uplink) + if (this->Utils->quiet_bursts) { /* * If quiet bursts are enabled, and server is bursting or silent uline (i.e. services), * then do nothing. -- w00t */ if ( - remoteserver->bursting || uplink->bursting || + remoteserver->bursting || this->ServerInstance->SilentULine(this->ServerInstance->FindServerNamePtr(u->server)) ) { |