diff options
| author | 2026-01-04 12:04:18 +0100 | |
|---|---|---|
| committer | 2026-01-04 12:04:18 +0100 | |
| commit | f33229ebde7e65b7cde07883e78b15e15952499d (patch) | |
| tree | 71625ef7c8e72afe861f0966b352b4598a2859c5 /src/modules.cpp | |
| parent | Add join time to the membership identifier. (diff) | |
| parent | Remove a v3-only notice, attempt two. (diff) | |
| download | inspircd++-f33229ebde7e65b7cde07883e78b15e15952499d.tar.gz inspircd++-f33229ebde7e65b7cde07883e78b15e15952499d.tar.bz2 inspircd++-f33229ebde7e65b7cde07883e78b15e15952499d.zip | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 0620c9c77..bb8302701 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -259,6 +259,14 @@ void ModuleManager::SetPriority(Module* mod, Priority s) SetPriority(mod, static_cast<Implementation>(n), s); } +bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, const std::string& which) +{ + Module* depmod = nullptr; + if (!which.empty()) + depmod = ServerInstance->Modules.Find(which); + return SetPriority(mod, i, s, depmod); +} + bool ModuleManager::SetPriority(Module* mod, Implementation i, Priority s, Module* which) { /** To change the priority of a module, we first find its position in the vector, |
