From b3c2abf41eead7a9aac5820796e9600ced8430df Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Nov 2006 22:58:48 +0000 Subject: When some (but not all) of the ports fail to bind on startup, give the user a list of the failed port/ip pairs on the terminal. Other ircds dont do this, and say 'go read the log'. I say if we can output them to a log, why not the screen? :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5728 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index b8719fcd8..b0f2d6872 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -772,7 +772,8 @@ void ServerConfig::Read(bool bail, userrec* user) if (!bail) { int found_ports; - ServerInstance->stats->BoundPortCount = ServerInstance->BindPorts(false, found_ports); + FailedPortList pl; + ServerInstance->stats->BoundPortCount = ServerInstance->BindPorts(false, found_ports, pl); if (!removed_modules.empty()) for (std::vector::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++) -- cgit v1.2.3