diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:32:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-09-03 15:32:02 +0200 |
commit | 4634151efc02ff016e19c5f123d75824d0d6c811 (patch) | |
tree | 5fc364f465a5b68dd3bcb3098738de55734ca971 /src/modules/m_repeat.cpp | |
parent | f55703b2fb7590333d06008add5294a6bd711339 (diff) |
Replace irc::modestacker usage with the new ModeParser::Process()
Diffstat (limited to 'src/modules/m_repeat.cpp')
-rw-r--r-- | src/modules/m_repeat.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp index b992fe0f4..ca6955040 100644 --- a/src/modules/m_repeat.cpp +++ b/src/modules/m_repeat.cpp @@ -376,11 +376,9 @@ class RepeatModule : public Module if (settings->Action == ChannelSettings::ACT_BAN) { - std::vector<std::string> parameters; - parameters.push_back(memb->chan->name); - parameters.push_back("+b"); - parameters.push_back("*!*@" + user->dhost); - ServerInstance->Modes->Process(parameters, ServerInstance->FakeClient); + Modes::ChangeList changelist; + changelist.push_add(ServerInstance->Modes->FindMode('b', MODETYPE_CHANNEL), "*!*@" + user->dhost); + ServerInstance->Modes->Process(ServerInstance->FakeClient, chan, NULL, changelist); } memb->chan->KickUser(ServerInstance->FakeClient, user, "Repeat flood"); |