~ubuntu-branches/ubuntu/oneiric/inspircd/oneiric-security

« back to all changes in this revision

Viewing changes to src/modules/m_spanningtree/treesocket2.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Darren Blaber
  • Date: 2008-04-21 12:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080421125101-m6lqhtn1wna8u2go
Tags: 1.1.19+dfsg-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
static std::map<std::string, std::string> warned;       /* Server names that have had protocol violation warnings displayed for them */
38
38
 
39
 
int TreeSocket::WriteLine(std::string line)
 
39
void TreeSocket::WriteLine(std::string line)
40
40
{
41
41
        Instance->Log(DEBUG, "S[%d] -> %s", this->GetFd(), line.c_str());
42
42
        line.append("\r\n");
43
 
        return this->Write(line);
 
43
        this->Write(line);
44
44
}
45
45
 
46
46
 
936
936
 
937
937
                        // this is good. Send our details: Our server name and description and hopcount of 0,
938
938
                        // along with the sendpass from this block.
 
939
                        this->SendCapabilities();
939
940
                        this->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+this->MakePass(x->SendPass, this->GetTheirChallenge())+" 0 :"+this->Instance->Config->ServerDesc);
940
941
                        // move to the next state, we are now waiting for THEM.
941
942
                        this->LinkState = WAIT_AUTH_2;