From 7ba7290bf07b4fb4d25566ee042fd43f9e129617 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 Feb 2019 12:14:37 +0000 Subject: ModeParser: remove fakederef. --- src/mode.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mode.cpp') 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); } } -- cgit v1.3.1-10-gc9f91