summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 05171ea60..22d4e36dc 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -410,11 +410,11 @@ static bool ValidateSID(ServerConfig* conf, const char*, const char*, ValueItem
{
ServerInstance->Logs->Log("CONFIG",DEFAULT,"Validating server id");
- const char *sid = data.GetString();
+ const std::string& sid = data.GetValue();
- if (*sid && !ServerInstance->IsSID(sid))
+ if (!ServerInstance->IsSID(sid))
{
- throw CoreException(std::string(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.");
+ 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.");
}
conf->sid = sid;