aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-05-14 18:10:52 +0100
committerGravatar Sadie Powell2026-05-14 18:10:52 +0100
commit5864e5dea2025d97f0ccbefa21bfc9d80983f05b (patch)
treeaf3514537939f0f800ec956ed483e43fe1857145 /src/modules.cpp
parentMerge branch 'insp4' into master. (diff)
parentTweak the pull request template a bit. (diff)
downloadinspircd++-5864e5dea2025d97f0ccbefa21bfc9d80983f05b.tar.gz
inspircd++-5864e5dea2025d97f0ccbefa21bfc9d80983f05b.tar.bz2
inspircd++-5864e5dea2025d97f0ccbefa21bfc9d80983f05b.zip
Merge branch 'insp4' into master.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 0bb197eff..8d9314e93 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -438,8 +438,9 @@ void ModuleManager::DoSafeUnload(const ModulePtr& mod)
auto curr = i++;
if (insp::same_ptr(curr->second->service_creator, mod))
{
+ auto* service = curr->second;
this->Services.erase(curr);
- FOREACH_MOD(OnServiceDel, (*curr->second));
+ FOREACH_MOD(OnServiceDel, (*service));
}
}