[Editors]
-Focused=1
+Focused=24
Order=1,2,4,6,3,7,25,5,24,-1
[Editor_0]
[Editor_1]
Open=1
-Top=1
-CursorCol=16
+Top=0
+CursorCol=2
CursorRow=6673
TopLine=6641
LeftChar=1
Top=0
CursorCol=20
CursorRow=15
-TopLine=6
+TopLine=1
LeftChar=1
[Editor_8]
LeftChar=1
[Editor_12]
-Open=1
+Open=0
Top=0
CursorCol=12
CursorRow=104
[Editor_13]
Open=1
Top=0
-CursorCol=89
+CursorCol=51
CursorRow=125
TopLine=73
LeftChar=1
LeftChar=1
[Editor_15]
-Open=0
+Open=1
Top=0
CursorCol=1
CursorRow=81
-TopLine=50
+TopLine=41
LeftChar=1
[Editor_16]
LeftChar=1
[Editor_17]
-Open=1
+Open=0
Top=0
CursorCol=20
CursorRow=128
[Editor_24]
Open=1
-Top=0
-CursorCol=1
-CursorRow=368
-TopLine=333
+Top=1
+CursorCol=96
+CursorRow=132
+TopLine=102
LeftChar=1
[Editor_25]
Open=1
bool ircd_connector::MakeOutboundConnection(char* host, int port)
{
+ log(DEBUG,"MakeOutboundConnection: Original param: %s",host);
hostent* hoste = gethostbyname(host);
if (!hoste)
{
- WriteOpers("Failed to look up hostname for %s, using as an ip address",host);
+ log(DEBUG,"MakeOutboundConnection: gethostbyname was NULL, setting %s",host);
this->SetHostAddress(host,port);
SetHostAndPort(host,port);
}
else
{
- WriteOpers("Found hostname for %s",host);
- this->SetHostAddress(hoste->h_addr,port);
- SetHostAndPort(hoste->h_addr,port);
+ log(DEBUG,"MakeOutboundConnection: gethostbyname was valid, setting %s",(char *)hoste->h_addr);
+ this->SetHostAddress((char *)hoste->h_addr,port);
+ SetHostAndPort((char *)hoste->h_addr,port);
}
this->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (this->fd >= 0)
{
- if(connect(this->fd, (sockaddr*)&addr,sizeof(addr)))
+ if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)))
{
WriteOpers("connect() failed for %s",host);
return false;