aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-08-09 22:42:26 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-08-09 22:42:26 +0200
commit8645f12f9faad312751fcff489eeda8bfb936b62 (patch)
tree6d62bd8c1ccc7e182c94ad9d0c10f02320253dea
parente9491ca85b314925cee6dcc3733b010e61e95e9a (diff)
downloadxK-8645f12f9faad312751fcff489eeda8bfb936b62.tar.gz
xK-8645f12f9faad312751fcff489eeda8bfb936b62.tar.xz
xK-8645f12f9faad312751fcff489eeda8bfb936b62.zip
kike: fix checking against channel masks
-rw-r--r--src/kike.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kike.c b/src/kike.c
index c191e02..b5ebc2e 100644
--- a/src/kike.c
+++ b/src/kike.c
@@ -749,7 +749,7 @@ client_in_mask_list (const struct client *c, const struct str_vector *mask)
c->nickname, c->username, c->hostname);
bool result = false;
for (size_t i = 0; i < mask->len; i++)
- if (!irc_fnmatch (client, mask->vector[i]))
+ if (!irc_fnmatch (mask->vector[i], client))
{
result = true;
break;