diff options
| author | 2021-03-30 17:52:02 +0100 | |
|---|---|---|
| committer | 2021-03-30 18:25:55 +0100 | |
| commit | 49702c621eed54caee6a45c0518d68a33bca8f92 (patch) | |
| tree | 94623f04b8635fbff3f1a90117c32d44fce11075 /src/modules/m_timedbans.cpp | |
| parent | Remove multi-line FJOIN and FMODE logic. (diff) | |
| download | inspircd++-49702c621eed54caee6a45c0518d68a33bca8f92.tar.gz inspircd++-49702c621eed54caee6a45c0518d68a33bca8f92.tar.bz2 inspircd++-49702c621eed54caee6a45c0518d68a33bca8f92.zip | |
Convert various mode methods to take Mode::Change.
- AccessCheck
- AfterMode
- BeforeMode
- OnModeChange
- OnRawMode
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index d7f97c97c..1bf08e01c 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -163,9 +163,9 @@ class BanWatcher : public ModeWatcher { } - void AfterMode(User* source, User* dest, Channel* chan, const std::string& banmask, bool adding) override + void AfterMode(User* source, User* dest, Channel* chan, const Modes::Change& change) override { - if (adding) + if (change.adding) return; for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end(); ++i) @@ -174,7 +174,7 @@ class BanWatcher : public ModeWatcher continue; const std::string& target = i->mask; - if (irc::equals(banmask, target)) + if (irc::equals(change.param, target)) { TimedBanList.erase(i); break; |
