diff options
| author | 2021-11-24 07:17:50 +0000 | |
|---|---|---|
| committer | 2021-11-24 07:17:50 +0000 | |
| commit | 2ec53e10ee5325df12586c72471efabb07cb9d70 (patch) | |
| tree | 7f06c35178be0c65048d9f2ff30b73b2bebb36a5 /src/modules/m_timedbans.cpp | |
| parent | Don't allow routing INFO to remote servers. (diff) | |
| parent | Make parsing websocket proxy headers more robust. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index e6a2712d3..65db00b88 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -215,12 +215,14 @@ class ModuleTimedBans final : public Module { private: + ChanModeReference banmode; CommandTban cmd; BanWatcher banwatcher; public: ModuleTimedBans() : Module(VF_VENDOR | VF_COMMON, "Adds the /TBAN command which allows channel operators to add bans which will be expired after the specified period.") + , banmode(this, "ban") , cmd(this) , banwatcher(this) { @@ -261,8 +263,8 @@ class ModuleTimedBans final } Modes::ChangeList setban; - setban.push_remove(ServerInstance->Modes.FindMode('b', MODETYPE_CHANNEL), timedban.mask); - ServerInstance->Modes.Process(ServerInstance->FakeClient, timedban.chan, NULL, setban); + setban.push_remove(*banmode, timedban.mask); + ServerInstance->Modes.Process(ServerInstance->FakeClient, timedban.chan, nullptr, setban); } } |
