From 8584cc23f4bd6515acef65fc82a15dc1f53127b2 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 1 Apr 2013 21:31:27 +0200 Subject: Ignore empty sid in ServerConfig::Fill() --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 668290f4d..6d37574e9 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -483,7 +483,7 @@ void ServerConfig::Fill() ServerName = ConfValue("server")->getString("name"); sid = ConfValue("server")->getString("id"); ValidHost(ServerName, ""); - if (!InspIRCd::IsSID(sid)) + if (!sid.empty() && !InspIRCd::IsSID(sid)) throw CoreException(sid + " is not a valid server ID. A server ID must be 3 characters long, with the first character a digit and the next two characters a digit or letter."); } else -- cgit v1.3.1-10-gc9f91