diff options
-rw-r--r-- | src/configreader.cpp | 2 | ||||
-rw-r--r-- | src/inspircd.cpp | 2 |
2 files changed, 2 insertions, 2 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."); } diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7e9d56734..56e43c3ed 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -568,7 +568,7 @@ InspIRCd::InspIRCd(int argc, char** argv) : if (Config->sid.empty()) { // Generate one - int sid = 0; + unsigned int sid = 0; char sidstr[4]; for (const char* x = Config->ServerName.c_str(); *x; ++x) |