1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 02:43:14 +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
@@ -510,7 +510,7 @@ struct IRCDMessageServer final
if (params.size() == 5)
UplinkSID = params[2];
new Server(source.GetServer() == NULL ? Me : source.GetServer(), params[0], 1, params.back(), UplinkSID);
new Server(source.GetServer() == NULL ? Me : source.GetServer(), params[0], params.back(), UplinkSID, 1);
IRCD->SendPing(Me->GetName(), params[0]);
}
@@ -526,7 +526,7 @@ struct IRCDMessageSID final
void Run(MessageSource &source, const std::vector<Anope::string> &params, const Anope::map<Anope::string> &tags) override
{
auto hops = Anope::Convert(params[1], 0);
new Server(source.GetServer() == NULL ? Me : source.GetServer(), params[0], hops, params.back(), params[2]);
new Server(source.GetServer() == NULL ? Me : source.GetServer(), params[0], params.back(), params[2], hops);
IRCD->SendPing(Me->GetName(), params[0]);
}