diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-29 23:34:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-29 23:34:47 +0000 |
commit | 5e9a6b9186a8cbaaf65ae7d9cd9c0c033c91b497 (patch) | |
tree | 5e90ee569ad974e0affe96d02b3470345eb74192 /src/mode.cpp | |
parent | b848ca14335adcb924acb7977d93e0d76b9437b7 (diff) |
Add counter system for umodes to get rid of some O(n)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6163 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index dfa846364..68d7e0bd0 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -53,7 +53,7 @@ #include "modes/umode_n.h" ModeHandler::ModeHandler(InspIRCd* Instance, char modeletter, int parameters_on, int parameters_off, bool listmode, ModeType type, bool operonly, char mprefix) - : ServerInstance(Instance), mode(modeletter), n_params_on(parameters_on), n_params_off(parameters_off), list(listmode), m_type(type), oper(operonly), prefix(mprefix) + : ServerInstance(Instance), mode(modeletter), n_params_on(parameters_on), n_params_off(parameters_off), list(listmode), m_type(type), oper(operonly), prefix(mprefix), count(0) { } @@ -71,6 +71,11 @@ unsigned int ModeHandler::GetPrefixRank() return 0; } +unsigned int ModeHandler::GetCount() +{ + return 0; +} + ModeType ModeHandler::GetModeType() { return m_type; |