diff options
| author | 2026-05-31 09:41:01 +0100 | |
|---|---|---|
| committer | 2026-05-31 09:41:01 +0100 | |
| commit | 811d6e278ec96cb87a5bedfb7fba1b2247cb5619 (patch) | |
| tree | 041467fb68a95980786cf8f1d94d55c84fecf9c3 /modules/joinflood.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Fix 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.cpp | 2 |
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); } |
