diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-02-15 17:50:41 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-02-15 17:50:41 +0100 |
commit | 9597d205e72b709f1be2645fda17079f6d77386d (patch) | |
tree | 005e52b6329b5a28ba929b9b93cc362575e91308 | |
parent | 97e2deac07fbc55d383a9d618cf9d30b9a9136d9 (diff) |
Remove I_BEGIN from enum Implementation
-rw-r--r-- | include/modules.h | 1 | ||||
-rw-r--r-- | src/modules.cpp | 6 |
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; |