From d4df7be5a9ee0ba11869529600c1af930f6cec61 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Aug 2006 19:43:47 +0000 Subject: CIDR g/k/e lines to go with zlines git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4744 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 51d0c173c..1273ff07a 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -356,9 +356,9 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri { /* This allows CIDR ban matching * - * Full masked host Full unmasked host IP with CIDR IP without CIDR + * Full masked host Full unmasked host IP with/without CIDR */ - if ((match(user->GetFullHost(),i->data)) || (match(user->GetFullRealHost(),i->data)) || (match(mask, i->data, true)) || (match(mask, i->data, false))) + if ((match(user->GetFullHost(),i->data)) || (match(user->GetFullRealHost(),i->data)) || (match(mask, i->data, true))) { WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name); return NULL; -- cgit v1.2.3