aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-04-01 21:31:27 +0200
committerGravatar attilamolnar2013-04-01 21:31:27 +0200
commit8584cc23f4bd6515acef65fc82a15dc1f53127b2 (patch)
treeeb5e755bfc33123976c7474cf358eebe62b27381 /src/configreader.cpp
parentMerge pull request #452 from SaberUK/master+nuke-hashmap (diff)
Ignore empty sid in ServerConfig::Fill()
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
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, "<server:name>");
- 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