diff options
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c index 28eade6..e6b0e46 100644 --- a/src/channel.c +++ b/src/channel.c @@ -595,12 +595,12 @@ find_bmask(const struct Client *who, const dlink_list *const list) { const struct Ban *bp = ptr->data; - if (match(bp->name, who->name) && match(bp->username, who->username)) + if (!match(bp->name, who->name) && !match(bp->username, who->username)) { switch (bp->type) { case HM_HOST: - if (match(bp->host, who->host) || match(bp->host, who->sockhost)) + if (!match(bp->host, who->host) || !match(bp->host, who->sockhost)) return 1; break; case HM_IPV4: |