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
This commit is contained in:
brain 2007-08-07 00:19:52 +00:00
parent ffe85d0764
commit 6d337f6019

View File

@ -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);