diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-12 13:09:14 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-12 13:09:14 +0000 |
commit | f741fa6e3c57107a88f1752dbed06af850a2525d (patch) | |
tree | 601c1971b1fda100fe052508e2f1525d1e7e09d6 /src/configreader.cpp | |
parent | 7ba6c9f001f8093f4174659531a7be2825d28ae8 (diff) |
Fix empty SID validation and generation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11851 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 22d4e36dc..87ee8789b 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -412,7 +412,7 @@ static bool ValidateSID(ServerConfig* conf, const char*, const char*, ValueItem const std::string& sid = data.GetValue(); - if (!ServerInstance->IsSID(sid)) + if (!sid.empty() && !ServerInstance->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."); } |