diff options
| author | 2024-05-01 13:06:46 +0100 | |
|---|---|---|
| committer | 2024-05-01 14:02:33 +0100 | |
| commit | eade37bd93b13a8652b08a7cc97dc0a443aae99c (patch) | |
| tree | 93ba2e721837d78771a5667666cf35e104443c9c /src/modules/m_spanningtree/capab.cpp | |
| parent | Make --(protocol)debug imply --nofork. (diff) | |
Splat the unused hops field in the 1206 SERVER message.
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 255b77ad8..676f2b572 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -579,9 +579,10 @@ bool TreeSocket::Capab(const CommandBase::Params& params) if (!this->GetTheirChallenge().empty() && (this->LinkState == CONNECTING)) { this->SendCapabilities(2); - this->WriteLine(INSP_FORMAT("SERVER {} {} 0 {} :{}", + this->WriteLine(INSP_FORMAT("SERVER {} {} {}{} :{}", ServerInstance->Config->ServerName, TreeSocket::MakePass(capab->link->SendPass, capab->theirchallenge), + proto_version == PROTO_INSPIRCD_3 ? "0 " : "", ServerInstance->Config->ServerId, ServerInstance->Config->ServerDesc )); @@ -593,9 +594,10 @@ bool TreeSocket::Capab(const CommandBase::Params& params) if (this->LinkState == CONNECTING) { this->SendCapabilities(2); - this->WriteLine(INSP_FORMAT("SERVER {} {} 0 {} :{}", + this->WriteLine(INSP_FORMAT("SERVER {} {} {}{} :{}", ServerInstance->Config->ServerName, capab->link->SendPass, + proto_version == PROTO_INSPIRCD_3 ? "0 " : "", ServerInstance->Config->ServerId, ServerInstance->Config->ServerDesc )); |
