diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 18:46:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 18:46:32 +0000 |
commit | fcd863f3af5a36c7ad5f8304effae958ab9d9147 (patch) | |
tree | 9b3431c42b82bd6ab2389b1fc0b53cc80af63239 /src/channels.cpp | |
parent | 30de7a8603dd06df8099c8904f918caf1263d995 (diff) |
Allow non-cidr ip's still
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4742 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index d354f2e62..51d0c173c 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -354,8 +354,11 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri { for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++) { - /* This allows CIDR ban matching */ - if ((match(user->GetFullHost(),i->data)) || (match(user->GetFullRealHost(),i->data)) || (match(mask, i->data, true))) + /* This allows CIDR ban matching + * + * Full masked host Full unmasked host IP with CIDR IP without CIDR + */ + if ((match(user->GetFullHost(),i->data)) || (match(user->GetFullRealHost(),i->data)) || (match(mask, i->data, true)) || (match(mask, i->data, false))) { WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name); return NULL; |