diff options
| author | 2019-02-07 12:14:37 +0000 | |
|---|---|---|
| committer | 2019-02-07 12:14:37 +0000 | |
| commit | 7ba7290bf07b4fb4d25566ee042fd43f9e129617 (patch) | |
| tree | c7a784c828a9be68f963776e5cdcdd1f088f4790 /src/users.cpp | |
| parent | LogManager: remove fakederef. (diff) | |
| download | inspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.tar.gz inspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.tar.bz2 inspircd++-7ba7290bf07b4fb4d25566ee042fd43f9e129617.zip | |
ModeParser: remove fakederef.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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)); |
