]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/xline.h
Now supports multiple commands seperated with \n. NOTE: These \n's are translated...
[user/henk/code/inspircd.git] / include / xline.h
index 52103509894e374fa05fe26087b79585b74b0dab..bfa810c971544d8c14bfa55d76307142938ce51a 100644 (file)
@@ -67,6 +67,7 @@ class KLine : public XLine
        /** Hostmask (ident@host) to match against
         * May contain wildcards.
         */
+       char identmask[20];
        char hostmask[200];
 };
 
@@ -78,6 +79,7 @@ class GLine : public XLine
        /** Hostmask (ident@host) to match against
         * May contain wildcards.
         */
+       char identmask[20];
        char hostmask[200];
 };
 
@@ -89,6 +91,7 @@ class ELine : public XLine
         /** Hostmask (ident@host) to match against
          * May contain wildcards.
          */
+       char identmask[20];
         char hostmask[200];
 };
 
@@ -133,6 +136,8 @@ bool DoQLine(ServerConfig* conf, const char* tag, char** entries, void** values,
 bool DoKLine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types);
 bool DoELine(ServerConfig* conf, const char* tag, char** entries, void** values, int* types);
 
+typedef std::pair<std::string, std::string> IdentHostPair;
+
 /** XLineManager is a class used to manage glines, klines, elines, zlines and qlines.
  */
 class XLineManager
@@ -201,6 +206,8 @@ class XLineManager
         */
        XLineManager(InspIRCd* Instance);
 
+       IdentHostPair IdentSplit(const std::string &ident_and_host);
+
        /** Add a new GLine
         * @param duration The duration of the line
         * @param source The source of the line