mirror of
https://github.com/anope/anope.git
synced 2026-07-01 13:46:38 +02:00
Make the hops parameter to Server optional.
This commit is contained in:
+7
-5
@@ -30,12 +30,14 @@ Anope::map<Server *> Servers::ByID;
|
||||
|
||||
std::set<Anope::string> Servers::Capab;
|
||||
|
||||
Server::Server(Server *up, const Anope::string &sname, unsigned shops, const Anope::string &desc, const Anope::string &ssid, bool jupe) : name(sname), hops(shops), description(desc), sid(ssid), uplink(up)
|
||||
Server::Server(Server *up, const Anope::string &sname, const Anope::string &desc, const Anope::string &ssid, unsigned shops, bool jupe)
|
||||
: name(sname)
|
||||
, hops(shops)
|
||||
, description(desc)
|
||||
, sid(ssid)
|
||||
, uplink(up)
|
||||
, juped(jupe)
|
||||
{
|
||||
syncing = true;
|
||||
juped = jupe;
|
||||
quitting = false;
|
||||
|
||||
Servers::ByName[sname] = this;
|
||||
if (!ssid.empty())
|
||||
Servers::ByID[ssid] = this;
|
||||
|
||||
Reference in New Issue
Block a user