summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index ee4891138..77431eeab 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -178,7 +178,10 @@ const Anope::string &Server::GetDescription() const
void Server::SetSID(const Anope::string &nsid)
{
+ if (!this->sid.empty())
+ throw CoreException("Server already has an id?");
this->sid = nsid;
+ Servers::ByID[nsid] = this;
}
const Anope::string &Server::GetSID() const