diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-31 12:12:30 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-31 12:12:30 +0000 |
commit | 0c3eeb1ae4888d0e761f852c0073ab57ad628d0b (patch) | |
tree | 382f24a33b2d710e2ed911f5ffd626f7eeb18f45 /include/xline.h | |
parent | be1286835c016ed2602db8e42f7ca0b367767242 (diff) |
Clean up XLine conf stuff a little bit, move most of it to configreader. Also, check elines and call ApplyLines on both rehash and startup.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8425 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/xline.h')
-rw-r--r-- | include/xline.h | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/include/xline.h b/include/xline.h index 7bf291253..6540d57f6 100644 --- a/include/xline.h +++ b/include/xline.h @@ -304,36 +304,10 @@ class CoreExport QLine : public XLine class ServerConfig; class InspIRCd; -/** Initialize x line - */ -bool InitXLine(ServerConfig* conf, const char* tag); - -/** Done adding zlines from the config - */ -bool DoneZLine(ServerConfig* conf, const char* tag); -/** Done adding qlines from the config - */ -bool DoneQLine(ServerConfig* conf, const char* tag); -/** Done adding klines from the config - */ -bool DoneKLine(ServerConfig* conf, const char* tag); /** Done adding elines from the config */ bool DoneELine(ServerConfig* conf, const char* tag); -/** Add a config-defined zline - */ -bool DoZLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types); -/** Add a config-defined qline - */ -bool DoQLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types); -/** Add a config-defined kline - */ -bool DoKLine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types); -/** Add a config-defined eline - */ -bool DoELine(ServerConfig* conf, const char* tag, char** entries, ValueList &values, int* types); - /** Contains an ident and host split into two strings */ typedef std::pair<std::string, std::string> IdentHostPair; @@ -371,6 +345,11 @@ class CoreExport XLineManager */ IdentHostPair IdentSplit(const std::string &ident_and_host); + /** Checks what users match a given list of ELines and sets their ban exempt flag accordingly. + * @param ELines List of E:Lines to check. + */ + void CheckELines(std::map<std::string, XLine *> &ELines); + /** Add a new GLine * @param duration The duration of the line * @param source The source of the line |