mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 21:03:13 +02:00
Add is_invited(client, channel) function.
This commit is contained in:
@@ -140,11 +140,10 @@ int secureonly_check_join(Client *client, Channel *channel, char *key, char *par
|
||||
/* if the channel is +z we still allow an ircop to bypass it
|
||||
* if they are invited.
|
||||
*/
|
||||
for (lp = client->user->invited; lp; lp = lp->next)
|
||||
if (lp->value.channel == channel)
|
||||
return HOOK_CONTINUE;
|
||||
if (is_invited(client, channel))
|
||||
return HOOK_CONTINUE;
|
||||
}
|
||||
return (ERR_SECUREONLYCHAN);
|
||||
return ERR_SECUREONLYCHAN;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user