summaryrefslogtreecommitdiff
path: root/include/xline.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-28 20:59:00 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-28 20:59:00 +0000
commitdece466300241cf48bb2b21a9e1c677b0f60b0ed (patch)
tree6594445d1914c7c56604a708fc8df6b38c49c4cc /include/xline.h
parent1580ba87b9e75adfff6efd98714f10c4ef7ad71c (diff)
Rewrite of XLineManager::ApplyLines to only apply pending lines. This ..doesn't seem to compile at the moment for me. Not tested, at all.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8410 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/xline.h')
-rw-r--r--include/xline.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/xline.h b/include/xline.h
index 9fd4d0bea..fd25976f4 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -82,6 +82,10 @@ class CoreExport XLine : public classbase
/** Expiry time
*/
time_t expiry;
+
+ /** Q, K, etc. Don't change this. Constructors set it.
+ */
+ char type;
};
/** KLine class
@@ -101,6 +105,7 @@ class CoreExport KLine : public XLine
{
identmask = strdup(ident);
hostmask = strdup(host);
+ type = 'K';
}
/** Destructor
@@ -138,6 +143,7 @@ class CoreExport GLine : public XLine
{
identmask = strdup(ident);
hostmask = strdup(host);
+ type = 'G';
}
/** Destructor
@@ -175,6 +181,7 @@ class CoreExport ELine : public XLine
{
identmask = strdup(ident);
hostmask = strdup(host);
+ type = 'E';
}
~ELine()
@@ -208,6 +215,7 @@ class CoreExport ZLine : public XLine
ZLine(time_t s_time, long d, const char* src, const char* re, const char* ip) : XLine(s_time, d, src, re)
{
ipaddr = strdup(ip);
+ type = 'Z';
}
/** Destructor
@@ -241,6 +249,7 @@ class CoreExport QLine : public XLine
QLine(time_t s_time, long d, const char* src, const char* re, const char* nickname) : XLine(s_time, d, src, re)
{
nick = strdup(nickname);
+ type = 'Q';
}
/** Destructor
@@ -310,6 +319,10 @@ class CoreExport XLineManager
/** This functor is used by the std::sort() function to keep all lines in order
*/
static bool XSortComparison (const XLine *one, const XLine *two);
+
+ /** Used to hold XLines which have not yet been applied.
+ */
+ std::vector<XLine *> pending_lines;
public:
/* Lists for temporary lines with an expiry time */