aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-02-09 23:49:02 +0000
committerGravatar Sadie Powell2026-02-09 23:49:02 +0000
commit148a90535c1b061efcc13439056f8ab786086084 (patch)
tree870fd7cd951dbd97f172c6191945e81a40fd3a4b
parentUpgrade 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.
-rw-r--r--src/modules/m_sslmodes.cpp2
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))