summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-06 18:34:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-06 18:34:39 +0000
commit3e50e674c3aab0827e62d21e75b828bff0e88da7 (patch)
tree53c5aae107954aa2342e77cd702debcc6c3d8424 /include/socket.h
parent662253ef6e58a555ce60d26339ab05bf52540677 (diff)
Allow nick!ident@ and ident@ portions in a CIDR mask if given, use match() without CIDR against that portion. This allows for CIDR operhosts while still matching idents (AND CIDR CHANNEL BANS)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4739 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index 2dcece906..38656e238 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -51,6 +51,7 @@ typedef struct in_addr insp_inaddr;
bool MatchCIDRBits(unsigned char* address, unsigned char* mask, unsigned int mask_bits);
bool MatchCIDR(const char* address, const char* cidr_mask);
+bool MatchCIDR(const char* address, const char* cidr_mask, bool match_with_username);
const char* insp_ntoa(insp_inaddr n);
int insp_aton(const char* a, insp_inaddr* n);