summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2009-07-17 14:55:30 +0200
committerAlexander Barton <alex@barton.de>2009-07-17 14:55:30 +0200
commit63cbc6cd4262971d0ef795d2404bc545413e159a (patch)
tree8657654d96cd406b8b29b3b8b2ac2fe814168841
parentb3cacf86df000ed22734b4a5e06d7d7eb8ae6ffa (diff)
downloadngircd-63cbc6cd4262971d0ef795d2404bc545413e159a.tar.gz
ngircd-63cbc6cd4262971d0ef795d2404bc545413e159a.zip
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.
-rw-r--r--src/ngircd/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index a3c9afec..eccf13cc 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -400,7 +400,7 @@ Conf_EnableServer( const char *Name, UINT16 Port )
 			/* Gotcha! Set port and enable server: */
 			Conf_Server[i].port = Port;
 			Conf_Server[i].flags &= ~CONF_SFLAG_DISABLED;
-			return true;
+			return (Conf_Server[i].port && Conf_Server[i].host[0]);
 		}
 	}
 	return false;