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_mlock.cpp | |
| parent | Remove multi-line FJOIN and FMODE logic. (diff) | |
Convert various mode methods to take Mode::Change.
- AccessCheck
- AfterMode
- BeforeMode
- OnModeChange
- OnRawMode
Diffstat (limited to 'src/modules/m_mlock.cpp')
| -rw-r--r-- | src/modules/m_mlock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp index adc37b686..490ba79f1 100644 --- a/src/modules/m_mlock.cpp +++ b/src/modules/m_mlock.cpp @@ -39,7 +39,7 @@ class ModuleMLock : public Module { } - ModResult OnRawMode(User* source, Channel* channel, ModeHandler* mh, const std::string& parameter, bool adding) override + ModResult OnRawMode(User* source, Channel* channel, const Modes::Change& change) override { if (!channel) return MOD_RES_PASSTHRU; @@ -51,7 +51,7 @@ class ModuleMLock : public Module if (!mlock_str) return MOD_RES_PASSTHRU; - const char mode = mh->GetModeChar(); + const char mode = change.mh->GetModeChar(); std::string::size_type p = mlock_str->find(mode); if (p != std::string::npos) { |
