kike: explicit conversion from pointer to boolean

In practice the values in the map may only be 1 or 0, so it doesn't
matter, but in C it is better to be safe than sorry.
This commit is contained in:
Přemysl Eric Janouch 2018-08-01 09:22:59 +02:00
parent 50ed74a740
commit b9eddabedd
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

2
kike.c
View File

@ -2728,7 +2728,7 @@ irc_try_join (struct client *c, const char *channel_name, const char *key)
else if (channel_get_user (chan, c)) else if (channel_get_user (chan, c))
return; return;
bool invited_by_chanop = str_map_find (&c->invites, channel_name); bool invited_by_chanop = !!str_map_find (&c->invites, channel_name);
if ((chan->modes & IRC_CHAN_MODE_INVITE_ONLY) if ((chan->modes & IRC_CHAN_MODE_INVITE_ONLY)
&& !client_in_mask_list (c, &chan->invite_list) && !client_in_mask_list (c, &chan->invite_list)
&& !invited_by_chanop) && !invited_by_chanop)