aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2019-02-07 12:14:37 +0000
committerGravatar Sadie Powell2019-02-07 12:14:37 +0000
commit7ba7290bf07b4fb4d25566ee042fd43f9e129617 (patch)
treec7a784c828a9be68f963776e5cdcdd1f088f4790 /src/mode.cpp
parentLogManager: remove fakederef. (diff)
downloadinspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.tar.gz
inspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.tar.bz2
inspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.zip
ModeParser: remove fakederef.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 50dd05d2d..f860d3be0 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -42,7 +42,7 @@ ModeHandler::ModeHandler(Module* Creator, const std::string& Name, char modelett
CullResult ModeHandler::cull()
{
if (ServerInstance)
- ServerInstance->Modes->DelMode(this);
+ ServerInstance->Modes.DelMode(this);
return classbase::cull();
}
@@ -147,12 +147,12 @@ ModeAction SimpleChannelModeHandler::OnModeChange(User* source, User* dest, Chan
ModeWatcher::ModeWatcher(Module* Creator, const std::string& modename, ModeType type)
: mode(modename), m_type(type), creator(Creator)
{
- ServerInstance->Modes->AddModeWatcher(this);
+ ServerInstance->Modes.AddModeWatcher(this);
}
ModeWatcher::~ModeWatcher()
{
- ServerInstance->Modes->DelModeWatcher(this);
+ ServerInstance->Modes.DelModeWatcher(this);
}
bool ModeWatcher::BeforeMode(User*, User*, Channel*, std::string&, bool)
@@ -834,7 +834,7 @@ void ModeHandler::RemoveMode(User* user)
{
Modes::ChangeList changelist;
changelist.push_remove(this);
- ServerInstance->Modes->Process(ServerInstance->FakeClient, NULL, user, changelist, ModeParser::MODE_LOCALONLY);
+ ServerInstance->Modes.Process(ServerInstance->FakeClient, NULL, user, changelist, ModeParser::MODE_LOCALONLY);
}
}