From 1027ecc41f69d706c3e530559d60b9c2faae2dc4 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 12 Aug 2008 16:17:20 +0000 Subject: Give error about no ports bound after telling what the problem(s) were git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10143 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f17e70c00..650bcc76f 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -639,13 +639,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->BuildISupport(); InitializeDisabledCommands(Config->DisabledCommands, this); - if ((Config->ports.size() == 0) && (found_ports > 0)) - { - printf("\nERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?\n"); - Log(DEFAULT,"ERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?"); - Exit(EXIT_STATUS_BIND); - } - if (Config->ports.size() != (unsigned int)found_ports) { printf("\nWARNING: Not all your client ports could be bound --\nstarting anyway with %d of %d client ports bound.\n\n", bounditems, found_ports); @@ -656,6 +649,14 @@ InspIRCd::InspIRCd(int argc, char** argv) printf("%d.\tAddress: %s\tReason: %s\n", j, i->first.empty() ? "" : i->first.c_str(), i->second.c_str()); } } + + if ((Config->ports.size() == 0) && (found_ports > 0)) + { + printf("\nERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?\n"); + Log(DEFAULT,"ERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?"); + Exit(EXIT_STATUS_BIND); + } + #ifndef WINDOWS if (!Config->nofork) { -- cgit v1.3.1-10-gc9f91