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/users.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 258d33488..5f81f57a3 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -37,7 +37,7 @@ bool User::IsNoticeMaskSet(unsigned char sm) bool User::IsModeSet(unsigned char m) const { - ModeHandler* mh = ServerInstance->Modes->FindMode(m, MODETYPE_USER); + ModeHandler* mh = ServerInstance->Modes.FindMode(m, MODETYPE_USER); return (mh && modes[mh->GetId()]); } @@ -353,7 +353,7 @@ CullResult FakeUser::cull() void User::Oper(OperInfo* info) { - ModeHandler* opermh = ServerInstance->Modes->FindMode('o', MODETYPE_USER); + ModeHandler* opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); if (opermh) { if (this->IsModeSet(opermh)) @@ -459,7 +459,7 @@ void User::UnOper() /* Remove all oper only modes from the user when the deoper - Bug #466*/ Modes::ChangeList changelist; - const ModeParser::ModeHandlerMap& usermodes = ServerInstance->Modes->GetModes(MODETYPE_USER); + const ModeParser::ModeHandlerMap& usermodes = ServerInstance->Modes.GetModes(MODETYPE_USER); for (ModeParser::ModeHandlerMap::const_iterator i = usermodes.begin(); i != usermodes.end(); ++i) { ModeHandler* mh = i->second; @@ -467,12 +467,12 @@ void User::UnOper() changelist.push_remove(mh); } - ServerInstance->Modes->Process(this, NULL, this, changelist); + ServerInstance->Modes.Process(this, NULL, this, changelist); // Remove the user from the oper list stdalgo::vector::swaperase(ServerInstance->Users->all_opers, this); - ModeHandler* opermh = ServerInstance->Modes->FindMode('o', MODETYPE_USER); + ModeHandler* opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); if (opermh) this->SetMode(opermh, false); FOREACH_MOD(OnPostDeoper, (this)); -- cgit v1.3.1-10-gc9f91