diff options
| author | 2008-03-30 22:42:42 +0000 | |
|---|---|---|
| committer | 2008-03-30 22:42:42 +0000 | |
| commit | b3d33859b163854926b2e8c4f374e33055b7bad2 (patch) | |
| tree | b5b81823a1e7a0e352f59a65e35bbbf12097c7f8 /src/modules/m_spanningtree/capab.cpp | |
| parent | AWAY notification for WATCH. Numerics are now sent out when a user goes away ... (diff) | |
Make sure CAPAB always comes before SERVER on either side of the link at all times
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9229 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index d0ddc989e..aa69e2ee6 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -201,6 +201,7 @@ bool TreeSocket::Capab(const std::deque<std::string> ¶ms) this->SetTheirChallenge(n->second); if (!this->GetTheirChallenge().empty() && (this->LinkState == CONNECTING)) { + this->SendCapabilities(); this->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+this->MakePass(OutboundPass, this->GetTheirChallenge())+" 0 "+ Instance->Config->GetSID()+" :"+this->Instance->Config->ServerDesc); } @@ -209,7 +210,10 @@ bool TreeSocket::Capab(const std::deque<std::string> ¶ms) { /* They didnt specify a challenge or we don't have m_sha256.so, we use plaintext */ if (this->LinkState == CONNECTING) + { + this->SendCapabilities(); this->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+OutboundPass+" 0 "+Instance->Config->GetSID()+" :"+this->Instance->Config->ServerDesc); + } } if (reason.length()) |
