kike: fix wildcard handling in WHOIS
This commit is contained in:
parent
2fccfb10f7
commit
f80226620c
4
kike.c
4
kike.c
@ -2459,8 +2459,8 @@ irc_handle_whois (const struct irc_message *msg, struct client *c)
|
||||
{
|
||||
struct str_map_iter iter = str_map_iter_make (&c->ctx->users);
|
||||
bool found = false;
|
||||
while ((target = str_map_iter_next (&iter))
|
||||
&& !irc_fnmatch (mask, target->nickname))
|
||||
while ((target = str_map_iter_next (&iter)))
|
||||
if (!irc_fnmatch (mask, target->nickname))
|
||||
{
|
||||
irc_send_whois_reply (c, target);
|
||||
found = true;
|
||||
|
Loading…
Reference in New Issue
Block a user