summaryrefslogtreecommitdiff
path: root/include/xline.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 12:51:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-02 12:51:22 +0000
commit68b55aa455ad78bb5939aa7c94645df2d339bec1 (patch)
tree1820b5ed16295e8d14db5b45982829f215f7b933 /include/xline.h
parent786093b7515e923921f65125ab5bf18f2279f923 (diff)
XLines now only checked for expiry on positive hit. saves us a honking big O(n) loop.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8458 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/xline.h')
-rw-r--r--include/xline.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/xline.h b/include/xline.h
index 7efc6a744..7e0e7f56e 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -404,8 +404,6 @@ class CoreExport XLineManager
QLineFactory* QFact;
ZLineFactory* ZFact;
- unsigned int PermLines;
-
public:
std::map<char, std::map<std::string, XLine *> > lookup_lines;
@@ -477,9 +475,9 @@ class CoreExport XLineManager
*/
XLine* MatchesLine(const char type, const std::string &pattern);
- /** Expire any lines that should be expired.
+ /** Expire a line given two iterators which identify it
*/
- void expire_lines();
+ void ExpireLine(std::map<char, std::map<std::string, XLine*> >::iterator container, std::map<std::string, XLine*>::iterator item);
/** Apply any new lines that are pending to be applied
*/