aboutsummaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-29 18:22:50 +0100
committerGravatar Sadie Powell2026-03-29 18:22:50 +0100
commitad096125ae65e198e3f12ebe0d5583382bdf7685 (patch)
treebea5c19063d576735142e61179712f5e611879f2 /src/inspircd.cpp
parentFix various minor Doxygen issues. (diff)
Replace some C-style array usage with Modern C++.
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index f7a0f82e7..5a92907a6 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -453,15 +453,11 @@ InspIRCd::InspIRCd(int argc, char** argv)
this->Config->CommandLine.argc = argc;
ParseOptions();
- {
- Service::Provider* provs[] =
- {
- &rfcevents.numeric, &rfcevents.join, &rfcevents.part, &rfcevents.kick, &rfcevents.quit, &rfcevents.nick,
- &rfcevents.mode, &rfcevents.topic, &rfcevents.privmsg, &rfcevents.invite, &rfcevents.ping, &rfcevents.pong,
- &rfcevents.reply, &rfcevents.error
- };
- Modules.AddServices(provs, sizeof(provs)/sizeof(provs[0]));
- }
+ Modules.AddService(
+ rfcevents.numeric, rfcevents.join, rfcevents.part, rfcevents.kick, rfcevents.quit,
+ rfcevents.nick, rfcevents.mode, rfcevents.topic, rfcevents.privmsg, rfcevents.invite,
+ rfcevents.ping, rfcevents.pong, rfcevents.reply, rfcevents.error
+ );
fmt::println("{}", fmt::styled("InspIRCd - Internet Relay Chat Daemon", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::green)));
fmt::println("See {} for contributors & authors", fmt::styled("/INFO", fmt::emphasis::bold | fmt::fg(fmt::terminal_color::green)));