diff options
| author | 2013-04-13 17:20:49 +0200 | |
|---|---|---|
| committer | 2013-04-13 17:20:49 +0200 | |
| commit | 4facf97111ce2c028d0c0c2292562a0d6a703395 (patch) | |
| tree | 8832f8b73fb98fc87ab68c53b57301a335bf3071 /src/modules/m_spanningtree/server.cpp | |
| parent | m_spanningtree Netburst: If a topic was ever set, send it even if it's empty (diff) | |
| download | inspircd++-4facf97111ce2c028d0c0c2292562a0d6a703395.tar.gz inspircd++-4facf97111ce2c028d0c0c2292562a0d6a703395.tar.bz2 inspircd++-4facf97111ce2c028d0c0c2292562a0d6a703395.zip | |
m_spanningtree Ignore hopcount in incoming SERVER command, always send 0 at burst
Diffstat (limited to 'src/modules/m_spanningtree/server.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/server.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index c37363c78..19e2d53a6 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -101,17 +101,9 @@ bool TreeSocket::Outbound_Reply_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = ConvToInt(params[2]); this->SendCapabilities(2); - if (hops) - { - this->SendError("Server too far away for authentication"); - ServerInstance->SNO->WriteToSnoMask('l',"Server connection from \2"+sname+"\2 denied, server is too far away for authentication"); - return false; - } - if (!ServerInstance->IsSID(sid)) { this->SendError("Invalid format server ID: "+sid+"!"); @@ -193,17 +185,9 @@ bool TreeSocket::Inbound_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = ConvToInt(params[2]); this->SendCapabilities(2); - if (hops) - { - this->SendError("Server too far away for authentication"); - ServerInstance->SNO->WriteToSnoMask('l',"Server connection from \2"+sname+"\2 denied, server is too far away for authentication"); - return false; - } - if (!ServerInstance->IsSID(sid)) { this->SendError("Invalid format server ID: "+sid+"!"); |
