aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-08-12 16:17:20 +0000
committerGravatar w00t2008-08-12 16:17:20 +0000
commit1027ecc41f69d706c3e530559d60b9c2faae2dc4 (patch)
tree923a4f0edfd0c57f58a3c1869515f818c8257d97 /src/inspircd.cpp
parentBackport revision 10139 (fix bug 555, make <options:deprotectothers> work and... (diff)
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
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp15
1 files changed, 8 insertions, 7 deletions
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() ? "<all>" : 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)
{