Disallow invites to juped channels.
In particular, this is checked when the source is local and not resv_exempt, or the target is local and not resv_exempt.
This commit is contained in:
parent
53307da8ca
commit
18fc47e681
1 changed files with 10 additions and 0 deletions
|
@ -109,6 +109,16 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
|
|||
return 0;
|
||||
}
|
||||
|
||||
if(((MyConnect(source_p) && !IsExemptResv(source_p)) ||
|
||||
(MyConnect(target_p) && !IsExemptResv(target_p))) &&
|
||||
hash_find_resv(parv[2]))
|
||||
{
|
||||
sendto_one_numeric(source_p, ERR_BADCHANNAME,
|
||||
form_str(ERR_BADCHANNAME),
|
||||
parv[2]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if((chptr = find_channel(parv[2])) == NULL)
|
||||
{
|
||||
sendto_one_numeric(source_p, ERR_NOSUCHCHANNEL,
|
||||
|
|
Loading…
Reference in a new issue