diff options
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/m_message.c | 2 | ||||
-rw-r--r-- | modules/core/m_server.c | 8 | ||||
-rw-r--r-- | modules/core/m_squit.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/m_message.c b/modules/core/m_message.c index e72126d..f84e1a3 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -888,7 +888,7 @@ find_userhost(char *user, char *host, int *count) if (!IsClient(c2ptr)) /* something other than a client */ continue; - if ((!host || match(host, c2ptr->host)) && + if ((!host || !match(host, c2ptr->host)) && irccmp(user, c2ptr->username) == 0) { (*count)++; diff --git a/modules/core/m_server.c b/modules/core/m_server.c index a1eb5e7..39fecd5 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -274,14 +274,14 @@ ms_server(struct Client *client_p, struct Client *source_p, * leaf. If so, close the link. */ DLINK_FOREACH(ptr, conf->leaf_list.head) - if (match(ptr->data, name)) + if (!match(ptr->data, name)) { llined = 1; break; } DLINK_FOREACH(ptr, conf->hub_list.head) - if (match(ptr->data, name)) + if (!match(ptr->data, name)) { hlined = 1; break; @@ -471,14 +471,14 @@ ms_sid(struct Client *client_p, struct Client *source_p, * leaf. If so, close the link. */ DLINK_FOREACH(ptr, conf->leaf_list.head) - if (match(ptr->data, parv[1])) + if (!match(ptr->data, parv[1])) { llined = 1; break; } DLINK_FOREACH(ptr, conf->hub_list.head) - if (match(ptr->data, parv[1])) + if (!match(ptr->data, parv[1])) { hlined = 1; break; diff --git a/modules/core/m_squit.c b/modules/core/m_squit.c index 7ba9b43..fb15b3c 100644 --- a/modules/core/m_squit.c +++ b/modules/core/m_squit.c @@ -71,7 +71,7 @@ mo_squit(struct Client *client_p, struct Client *source_p, if (IsServer(p) || IsMe(p)) { - if (match(server, p->name)) + if (!match(server, p->name)) { target_p = p; break; |