1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-13 10:20:28 +00:00

Fix return code of Conf_EnableServer()

Conf_EnableServer() only reports success if all required variables,
including host name and port, are set for the specific server.
This commit is contained in:
Alexander Barton 2009-07-17 14:55:30 +02:00
parent b3cacf86df
commit 63cbc6cd42

View File

@ -400,7 +400,7 @@ Conf_EnableServer( const char *Name, UINT16 Port )
/* Gotcha! Set port and enable server: */ /* Gotcha! Set port and enable server: */
Conf_Server[i].port = Port; Conf_Server[i].port = Port;
Conf_Server[i].flags &= ~CONF_SFLAG_DISABLED; Conf_Server[i].flags &= ~CONF_SFLAG_DISABLED;
return true; return (Conf_Server[i].port && Conf_Server[i].host[0]);
} }
} }
return false; return false;