diff options
author | Sadie Powell <sadie@witchery.services> | 2025-03-19 13:37:11 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-03-19 13:37:11 +0000 |
commit | 6d72fd67d8bc33a1aaf6e14c74374bc04e0abe7e (patch) | |
tree | 437eab4250e10bef904b4bfc71abf596b76841c7 | |
parent | 0a11bc769388dc324428915e6ed1ed8981ab0eaa (diff) |
Improve logging about the protocol module on startup.
-rw-r--r-- | src/init.cpp | 5 | ||||
-rw-r--r-- | src/uplink.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 5db768701..757346e0d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -545,14 +545,13 @@ bool Anope::Init(int ac, char **av) if (!encryption) throw CoreException("You must load a non-deprecated encryption module!"); - auto *protocol = ModuleManager::FindFirstOf(PROTOCOL); - if (!protocol) + if (!IRCD) throw CoreException("You must load a protocol module!"); /* Write our PID to the PID file. */ write_pidfile(); - Log() << "Using IRCd protocol " << protocol->name; + Log(LOG_TERMINAL) << "Using IRCd protocol " << IRCD->GetProtocolName() << " (" << IRCD->owner->name << ")"; /* Auto assign sid if applicable */ if (IRCD->RequiresID) diff --git a/src/uplink.cpp b/src/uplink.cpp index ec6dbc199..c8bfc0b3b 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -57,7 +57,7 @@ void Uplink::Connect() UplinkSock->Bind(Config->GetBlock("serverinfo").Get<const Anope::string>("localhost")); FOREACH_MOD(OnPreServerConnect, ()); Anope::string ip = Anope::Resolve(u.host, u.protocol); - Log(LOG_TERMINAL) << "Attempting to connect to uplink #" << (Anope::CurrentUplink + 1) << " " << ip << " (" << u.str() << ") with protocol " << IRCD->GetProtocolName(); + Log(LOG_TERMINAL) << "Attempting to connect to uplink #" << (Anope::CurrentUplink + 1) << " " << ip << " (" << u.str() << ")"; UplinkSock->Connect(ip, u.port); } |