mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:46:38 +02:00
Fix a few problems found by Cronusa and KindOne
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user