summaryrefslogtreecommitdiff
path: root/include/modes
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-29 23:34:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-29 23:34:47 +0000
commit5e9a6b9186a8cbaaf65ae7d9cd9c0c033c91b497 (patch)
tree5e90ee569ad974e0affe96d02b3470345eb74192 /include/modes
parentb848ca14335adcb924acb7977d93e0d76b9437b7 (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 'include/modes')
-rw-r--r--include/modes/umode_i.h1
-rw-r--r--include/modes/umode_o.h1
-rw-r--r--include/modes/umode_s.h1
-rw-r--r--include/modes/umode_w.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/include/modes/umode_i.h b/include/modes/umode_i.h
index c8e33b492..cc7d15102 100644
--- a/include/modes/umode_i.h
+++ b/include/modes/umode_i.h
@@ -22,4 +22,5 @@ class ModeUserInvisible : public ModeHandler
public:
ModeUserInvisible(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
+ unsigned int GetCount();
};
diff --git a/include/modes/umode_o.h b/include/modes/umode_o.h
index 4fe6f6b96..7dfdb4128 100644
--- a/include/modes/umode_o.h
+++ b/include/modes/umode_o.h
@@ -22,4 +22,5 @@ class ModeUserOperator : public ModeHandler
public:
ModeUserOperator(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
+ unsigned int GetCount();
};
diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h
index 297b49c67..cda223eee 100644
--- a/include/modes/umode_s.h
+++ b/include/modes/umode_s.h
@@ -22,4 +22,5 @@ class ModeUserServerNotice : public ModeHandler
public:
ModeUserServerNotice(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
+ unsigned int GetCount();
};
diff --git a/include/modes/umode_w.h b/include/modes/umode_w.h
index b1f6e94c7..271e959c4 100644
--- a/include/modes/umode_w.h
+++ b/include/modes/umode_w.h
@@ -22,4 +22,5 @@ class ModeUserWallops : public ModeHandler
public:
ModeUserWallops(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding);
+ unsigned int GetCount();
};