diff options
| author | 2026-02-09 23:49:02 +0000 | |
|---|---|---|
| committer | 2026-02-09 23:49:02 +0000 | |
| commit | 148a90535c1b061efcc13439056f8ab786086084 (patch) | |
| tree | 870fd7cd951dbd97f172c6191945e81a40fd3a4b /src/modules/m_sslmodes.cpp | |
| parent | Upgrade Doxyfile for the latest Doxygen. (diff) | |
Fix checking whether the +z channel mode is already set.
The dest parameter will be null here as this is a channel mode.
Diffstat (limited to 'src/modules/m_sslmodes.cpp')
| -rw-r--r-- | src/modules/m_sslmodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp index eac357e31..d3225f6a5 100644 --- a/src/modules/m_sslmodes.cpp +++ b/src/modules/m_sslmodes.cpp @@ -85,7 +85,7 @@ public: bool OnModeChange(User* source, User* dest, Channel* channel, Modes::Change& change) override { - if (change.adding == dest->IsModeSet(this)) + if (change.adding == channel->IsModeSet(this)) return false; if (change.adding && IS_LOCAL(source)) |
