ServerDesc = "";
VersionString = "";
UserCount = OperCount = 0;
- VersionString = Srv->GetVersion();
+ VersionString = ServerInstance->GetVersionString();
}
/* We use this constructor only to create the 'root' item, TreeRoot, which
Parent = NULL;
VersionString = "";
UserCount = OperCount = 0;
- VersionString = Srv->GetVersion();
+ VersionString = ServerInstance->GetVersionString();
Route = NULL;
Socket = NULL; /* Fix by brain */
AddHashEntry();
}
}
/* found who we're supposed to be connecting to, send the neccessary gubbins. */
- this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+Srv->GetServerDescription());
+ this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+ServerInstance->Config->ServerDesc);
return true;
}
}
for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++)
{
- int x = cflags(i->second,c);
+ int x = c->GetStatusFlags(i->second);
if ((x & UCMODE_HOP) && (x & UCMODE_OP))
{
specific_halfop.push_back(i->second);
ServerInstance->WriteOpers("*** Bursting to \2"+name+"\2.");
this->WriteLine(burst);
/* send our version string */
- this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+Srv->GetVersion());
+ this->WriteLine(":"+Srv->GetServerName()+" VERSION :"+this->Instance->GetVersionString());
/* Send server tree */
this->SendServers(TreeRoot,s,1);
/* Send users and their oper status */
this->InboundDescription = description;
// this is good. Send our details: Our server name and description and hopcount of 0,
// along with the sendpass from this block.
- this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+Srv->GetServerDescription());
+ this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+ServerInstance->Config->ServerDesc);
// move to the next state, we are now waiting for THEM.
this->LinkState = WAIT_AUTH_2;
return true;
Bindings.clear();
// Create the root of the tree
- TreeRoot = new TreeServer(Srv->GetServerName(),Srv->GetServerDescription());
+ TreeRoot = new TreeServer(ServerInstance->Config->ServerName, ServerInstance->Config->ServerDesc);
ReadConfiguration(true);