summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-12 22:51:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-12 22:51:38 +0000
commit3679c5ebb764521ec940a526af16f61985ae15da (patch)
tree7ba47a2ccce8ddca636d31c53e0d0a98ab29e182 /include
parentcc9854655d57d49aec35150799e125b0fbe23dce (diff)
New clone counting mechanism (this isnt tested yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5967 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h11
-rw-r--r--include/modules.h2
2 files changed, 12 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 8cce5513a..64489aaf6 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -193,6 +193,9 @@ class FileLogger : public EventHandler
/** A list of failed port bindings, used for informational purposes on startup */
typedef std::vector<std::pair<std::string, long> > FailedPortList;
+/** A list of ip addresses cross referenced against clone counts */
+typedef std::map<irc::string, unsigned int> clonemap;
+
class XLineManager;
/** The main class of the irc server.
@@ -401,6 +404,10 @@ class InspIRCd : public classbase
*/
std::vector<userrec*> all_opers;
+ clonemap local_clones;
+
+ clonemap global_clones;
+
/** Whowas container, contains a map of vectors of users tracked by WHOWAS
*/
irc::whowas::whowas_users whowas;
@@ -453,6 +460,10 @@ class InspIRCd : public classbase
*/
int SetTimeDelta(int delta);
+ void AddLocalClone(userrec* user);
+
+ void AddGlobalClone(userrec* user);
+
/** Get the time offset in seconds
* @return The current time delta (in seconds)
*/
diff --git a/include/modules.h b/include/modules.h
index df8c03e3b..275063be9 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -79,7 +79,7 @@ enum MessageType {
* ipv4 servers, so this value will be ten times as
* high on ipv6 servers.
*/
-#define NATIVE_API_VERSION 11007
+#define NATIVE_API_VERSION 11008
#ifdef IPV6
#define API_VERSION (NATIVE_API_VERSION * 10)
#else