mirror of
https://github.com/anope/anope.git
synced 2026-07-01 21:26:38 +02:00
Improve logging about the protocol module on startup.
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user