/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
+ char identmask[20];
char hostmask[200];
};
/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
+ char identmask[20];
char hostmask[200];
};
/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
+ char identmask[20];
char hostmask[200];
};
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
*/
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
char* matches_qline(const char* nick);
/** Check if a hostname matches a GLine
- * @return host The host to check against
+ * @param user The user to check against
* @return The reason for the line if there is a match, or NULL if there is no match
*/
- char* matches_gline(const char* host);
+ char* matches_gline(userrec* user);
/** Check if a IP matches a ZLine
- * @return ipaddr The IP to check against
+ * @param ipaddr The IP to check against
* @return The reason for the line if there is a match, or NULL if there is no match
*/
char* matches_zline(const char* ipaddr);
/** Check if a hostname matches a KLine
- * @return host The host to check against
+ * @param user The user to check against
* @return The reason for the line if there is a match, or NULL if there is no match
*/
- char* matches_kline(const char* host);
+ char* matches_kline(userrec* user);
/** Check if a hostname matches a ELine
- * @return host The host to check against
+ * @param user The user to check against
* @return The reason for the line if there is a match, or NULL if there is no match
*/
- char* matches_exception(const char* host);
+ char* matches_exception(userrec* user);
/** Expire any pending non-permenant lines
*/