summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-07 00:19:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-07 00:19:13 +0000
commitc67ab9aa97de6072e40efa528e80ffb2a7e45280 (patch)
treee19e59537a2b6fe0a66a9268008133d003d6889f /src
parent475a7d2aa81837c3ab05c33d6c6d5a52405117d4 (diff)
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/trunk/inspircd@7684 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index b5680bd73..46bb9231e 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -864,7 +864,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);