aboutsummaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-08-07 00:19:52 +0000
committerGravatar brain2007-08-07 00:19:52 +0000
commit6d337f6019505528d09453a2fd08c914321e0d08 (patch)
treefea7312c01dceec2506440ca32bb260ce708600e /src/configreader.cpp
parentMerge in missing part of gnutls fix (diff)
Backport: Check for remote and sighup rehashes here, so that it doesnt crash if there are ports that cant be bound
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7685 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index d4291692f..ea6afa2ff 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -872,7 +872,7 @@ void ServerConfig::Read(bool bail, userrec* user)
FailedPortList pl;
ServerInstance->BindPorts(false, found_ports, pl);
- if (pl.size())
+ if (pl.size() && user)
{
user->WriteServ("NOTICE %s :*** Not all your client ports could be bound.", user->nick);
user->WriteServ("NOTICE %s :*** The following port(s) failed to bind:", user->nick);