aboutsummaryrefslogtreecommitdiff
path: root/modules/joinflood.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-05-31 09:41:01 +0100
committerGravatar Sadie Powell2026-05-31 09:41:01 +0100
commit811d6e278ec96cb87a5bedfb7fba1b2247cb5619 (patch)
tree041467fb68a95980786cf8f1d94d55c84fecf9c3 /modules/joinflood.cpp
parentMerge branch 'insp4' into master. (diff)
parentFix FJOINs wrapped by the compat layer not being prefixed properly. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/joinflood.cpp')
-rw-r--r--modules/joinflood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/joinflood.cpp b/modules/joinflood.cpp
index 783ed6f9e..6a9be0748 100644
--- a/modules/joinflood.cpp
+++ b/modules/joinflood.cpp
@@ -201,7 +201,7 @@ public:
f->clear();
f->lock();
- PrefixMode* pm = ServerInstance->Modes.FindNearestPrefixMode(notifyrank);
+ auto* pm = notifyrank ? ServerInstance->Modes.FindNearestPrefixMode(notifyrank) : nullptr;
memb->chan->WriteNotice(FMT::format("This channel has been closed to new users for {} because there have been more than {} joins in {}.",
Duration::ToLongString(duration), f->joins, Duration::ToLongString(f->secs)), pm ? pm->GetPrefix() : 0);
}