summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules.h1
-rw-r--r--src/modules.cpp6
2 files changed, 3 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h
index d034ebac2..9b45eb3c8 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -221,7 +221,6 @@ enum Priority { PRIORITY_FIRST, PRIORITY_LAST, PRIORITY_BEFORE, PRIORITY_AFTER }
*/
enum Implementation
{
- I_BEGIN,
I_OnUserConnect, I_OnUserQuit, I_OnUserDisconnect, I_OnUserJoin, I_OnUserPart,
I_OnSendSnotice, I_OnUserPreJoin, I_OnUserPreKick, I_OnUserKick, I_OnOper, I_OnInfo, I_OnWhois,
I_OnUserPreInvite, I_OnUserInvite, I_OnUserPreMessage, I_OnUserPreNick,
diff --git a/src/modules.cpp b/src/modules.cpp
index 1c33785b0..78e80d63c 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -189,19 +189,19 @@ void ModuleManager::Attach(Implementation* i, Module* mod, size_t sz)
void ModuleManager::AttachAll(Module* mod)
{
- for (size_t i = I_BEGIN + 1; i != I_END; ++i)
+ for (size_t i = 0; i != I_END; ++i)
Attach((Implementation)i, mod);
}
void ModuleManager::DetachAll(Module* mod)
{
- for (size_t n = I_BEGIN + 1; n != I_END; ++n)
+ for (size_t n = 0; 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 = 0; n != I_END; ++n)
SetPriority(mod, (Implementation)n, s);
return true;