aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_mlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_mlock.cpp')
-rw-r--r--src/modules/m_mlock.cpp4
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)
{