aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-03 15:07:58 -0400
committerGravatar Daniel De Graaf2010-08-03 17:32:44 -0400
commit02bf9996ac32c6ce39f5b74965b526711a85c490 (patch)
treeae3358bb13358601264cbe029178aa82be7b4abf /src/modules.cpp
parentAllow halfops to remove their own halfop status (diff)
Allow module init to be prioritized to allow dependency checking
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index cdce0db41..a476e283f 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -189,13 +189,13 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz)
void ModuleManager::DetachAll(Module* mod)
{
- for (size_t n = I_BEGIN + 1; n != I_END; ++n)
+ for (size_t n = I_ModuleInit; n != I_END; ++n)
Detach((Implementation)n, mod);
}
bool ModuleManager::SetPriority(Module* mod, Priority s)
{
- for (size_t n = I_BEGIN + 1; n != I_END; ++n)
+ for (size_t n = I_ModuleInit; n != I_END; ++n)
SetPriority(mod, (Implementation)n, s);
return true;