diff options
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 23c3fd925..d854edfaf 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -478,7 +478,13 @@ bool ValidateInvite(ServerConfig* conf, const char*, const char*, ValueItem &dat bool ValidateSID(ServerConfig* conf, const char*, const char*, ValueItem &data) { -// std::string sid = data.GetString(); + const char *sid = data.GetString(); + + if (*sid && !conf->GetInstance()->IsSID(sid)) + { + throw CoreException(std::string(sid) + " is not a valid server ID."); + } + return true; } |