diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:35:13 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:35:13 +0200 |
commit | 5bea41d726f9c93ca1914ae9b6259765991d383c (patch) | |
tree | 1e45fa01158cefba99aeab489be402cf48016df7 /src/modules | |
parent | 4634151efc02ff016e19c5f123d75824d0d6c811 (diff) |
Use Modes::ChangeList in ModeHandler::RemoveMode()
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/fjoin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/fjoin.cpp b/src/modules/m_spanningtree/fjoin.cpp index cb1126ac7..9e418b0a2 100644 --- a/src/modules/m_spanningtree/fjoin.cpp +++ b/src/modules/m_spanningtree/fjoin.cpp @@ -209,7 +209,7 @@ void CommandFJoin::ProcessModeUUIDPair(const std::string& item, TreeServer* sour void CommandFJoin::RemoveStatus(Channel* c) { - irc::modestacker stack(false); + Modes::ChangeList changelist; const ModeParser::ModeHandlerMap& mhs = ServerInstance->Modes->GetModes(MODETYPE_CHANNEL); for (ModeParser::ModeHandlerMap::const_iterator i = mhs.begin(); i != mhs.end(); ++i) @@ -220,10 +220,10 @@ void CommandFJoin::RemoveStatus(Channel* c) * rather than applied immediately. Module unloads require this to be done immediately, * for this function we require tidyness instead. Fixes bug #493 */ - mh->RemoveMode(c, stack); + mh->RemoveMode(c, changelist); } - ApplyModeStack(ServerInstance->FakeClient, c, stack); + ServerInstance->Modes->Process(ServerInstance->FakeClient, c, NULL, changelist, ModeParser::MODE_LOCALONLY); } void CommandFJoin::ApplyModeStack(User* srcuser, Channel* c, irc::modestacker& stack) |