1
0
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:
Sadie Powell
2026-03-26 12:25:09 +00:00
parent 1b2b4386c1
commit 5006993d0a
11 changed files with 25 additions and 23 deletions
+7 -5
View File
@@ -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;