mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
Do not check for spambot if the user is not allowed to join the channel.
This commit is contained in:
parent
b2d64e51f0
commit
cf3564d61f
1 changed files with 3 additions and 3 deletions
|
@ -294,9 +294,6 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
}
|
||||
}
|
||||
|
||||
if(!IsOper(source_p) && !IsExemptSpambot(source_p))
|
||||
check_spambot_warning(source_p, name);
|
||||
|
||||
/* can_join checks for +i key, bans etc */
|
||||
if((i = can_join(source_p, chptr, key)))
|
||||
{
|
||||
|
@ -318,6 +315,9 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
sendto_one_numeric(source_p, ERR_LINKCHANNEL, form_str(ERR_LINKCHANNEL), name, chptr->chname);
|
||||
}
|
||||
|
||||
if(!IsOper(source_p) && !IsExemptSpambot(source_p))
|
||||
check_spambot_warning(source_p, name);
|
||||
|
||||
/* add the user to the channel */
|
||||
add_user_to_channel(chptr, source_p, flags);
|
||||
if (chptr->mode.join_num &&
|
||||
|
|
Loading…
Reference in a new issue