1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 10:26: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
+1 -1
View File
@@ -518,7 +518,7 @@ bool Anope::Init(int ac, char **av)
/* Create me */
const auto &block = Config->GetBlock("serverinfo");
Me = new Server(NULL, block.Get<const Anope::string>("name"), 0, block.Get<const Anope::string>("description"), block.Get<const Anope::string>("id"));
Me = new Server(NULL, block.Get<const Anope::string>("name"), block.Get<const Anope::string>("description"), block.Get<const Anope::string>("id"));
for (const auto &[_, bi] : *BotListByNick)
{
bi->server = Me;