1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 20:13:13 +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
+2 -2
View File
@@ -542,13 +542,13 @@ struct IRCDMessageServer final
if (params.size() == 3)
{
// our uplink is introducing itself
new Server(Me, params[0], 1, params[2], "1");
new Server(Me, params[0], params[2], "1", 1);
}
else
{
// our uplink is introducing a new server
auto hops = Anope::Convert<unsigned>(params[1], 0);
new Server(source.GetServer(), params[0], hops, params[3], params[2]);
new Server(source.GetServer(), params[0], params[3], params[2], hops);
}
/*
* ngIRCd does not send an EOB, so we send a PING immediately