From 6d72fd67d8bc33a1aaf6e14c74374bc04e0abe7e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 19 Mar 2025 13:37:11 +0000 Subject: Improve logging about the protocol module on startup. --- src/init.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/init.cpp') 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) -- cgit