diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-12 22:58:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-12 22:58:48 +0000 |
commit | b3c2abf41eead7a9aac5820796e9600ced8430df (patch) | |
tree | c2fbeb42aae2c48ad71c58f45b275444fc29cfa9 /src/configreader.cpp | |
parent | ceafaa5e7a3f9c6eb78bf2823212ecff92d393c7 (diff) |
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
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++) |