aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/capab.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-07 12:16:33 +0000
committerGravatar Sadie Powell2019-02-07 12:16:33 +0000
commit641b2d07ab6868a9fa6726c1bc36cde80005e155 (patch)
tree00f6f16cef0464477d4a890b3c21793557c2c537 /src/modules/m_spanningtree/capab.cpp
parentModeParser: remove fakederef. (diff)
downloadinspircd++-641b2d07ab6868a9fa6726c1bc36cde80005e155.tar.gz
inspircd++-641b2d07ab6868a9fa6726c1bc36cde80005e155.tar.bz2
inspircd++-641b2d07ab6868a9fa6726c1bc36cde80005e155.zip
ModuleManager: remove fakederef.
Diffstat (limited to 'src/modules/m_spanningtree/capab.cpp')
-rw-r--r--src/modules/m_spanningtree/capab.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp
index 38958f0fb..93e8008a6 100644
--- a/src/modules/m_spanningtree/capab.cpp
+++ b/src/modules/m_spanningtree/capab.cpp
@@ -39,7 +39,7 @@ static CompatMod compatmods[] =
std::string TreeSocket::MyModules(int filter)
{
- const ModuleManager::ModuleMap& modlist = ServerInstance->Modules->GetModules();
+ const ModuleManager::ModuleMap& modlist = ServerInstance->Modules.GetModules();
std::string capabilities;
for (ModuleManager::ModuleMap::const_iterator i = modlist.begin(); i != modlist.end(); ++i)
@@ -170,7 +170,7 @@ void TreeSocket::SendCapabilities(int phase)
std::string extra;
/* Do we have sha256 available? If so, we send a challenge */
- if (ServerInstance->Modules->FindService(SERVICE_DATA, "hash/sha256"))
+ if (ServerInstance->Modules.FindService(SERVICE_DATA, "hash/sha256"))
{
SetOurChallenge(ServerInstance->GenRandomStr(20));
extra = " CHALLENGE=" + this->GetOurChallenge();
@@ -204,7 +204,7 @@ void TreeSocket::SendCapabilities(int phase)
// in 2.0, we advertise it here to not break linking to previous versions.
// Protocol version 1201 (1.2) does not have this issue because we advertise m_globops
// to 1201 protocol servers irrespectively of its module flags.
- (ServerInstance->Modules->Find("m_globops.so") != NULL ? " GLOBOPS=1" : " GLOBOPS=0")
+ (ServerInstance->Modules.Find("m_globops.so") != NULL ? " GLOBOPS=1" : " GLOBOPS=0")
);
this->WriteLine("CAPAB END");
@@ -395,7 +395,7 @@ bool TreeSocket::Capab(const CommandBase::Params& params)
/* Challenge response, store their challenge for our password */
std::map<std::string,std::string>::iterator n = this->capab->CapKeys.find("CHALLENGE");
- if ((n != this->capab->CapKeys.end()) && (ServerInstance->Modules->FindService(SERVICE_DATA, "hash/sha256")))
+ if ((n != this->capab->CapKeys.end()) && (ServerInstance->Modules.FindService(SERVICE_DATA, "hash/sha256")))
{
/* Challenge-response is on now */
this->SetTheirChallenge(n->second);