summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-01 04:35:36 -0400
committerAdam <Adam@anope.org>2012-10-01 04:35:36 -0400
commitf14a3dfb8a4cc9da7b5066ac8320265d54dba177 (patch)
treee024da12840263dc3295fea16c786000d33b66ef /src/servers.cpp
parentb19a3af4db6fefdf3d94963163eb00e7133c8046 (diff)
Fix a few problems found by Cronusa and KindOne
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index d89757996..40d4bc2b2 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -212,7 +212,7 @@ void Server::SetSID(const Anope::string &sid)
*/
const Anope::string &Server::GetSID() const
{
- if (!this->SID.empty())
+ if (!this->SID.empty() && ircdproto->RequiresID)
return this->SID;
else
return this->Name;