JOIN 0: Make spambot check equivalent to PART's.
This commit is contained in:
parent
8cf4cea3da
commit
896e8e51b7
|
@ -943,8 +943,6 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char
|
||||||
* output - NONE
|
* output - NONE
|
||||||
* side effects - Use has decided to join 0. This is legacy
|
* side effects - Use has decided to join 0. This is legacy
|
||||||
* from the days when channels were numbers not names. *sigh*
|
* from the days when channels were numbers not names. *sigh*
|
||||||
* There is a bunch of evilness necessary here due to
|
|
||||||
* anti spambot code.
|
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
do_join_0(struct Client *client_p, struct Client *source_p)
|
do_join_0(struct Client *client_p, struct Client *source_p)
|
||||||
|
@ -959,12 +957,12 @@ do_join_0(struct Client *client_p, struct Client *source_p)
|
||||||
|
|
||||||
sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s JOIN 0", use_id(source_p));
|
sendto_server(client_p, NULL, CAP_TS6, NOCAPS, ":%s JOIN 0", use_id(source_p));
|
||||||
|
|
||||||
if(source_p->user->channel.head && MyConnect(source_p) &&
|
while((ptr = source_p->user->channel.head))
|
||||||
|
{
|
||||||
|
if(MyConnect(source_p) &&
|
||||||
!IsOper(source_p) && !IsExemptSpambot(source_p))
|
!IsOper(source_p) && !IsExemptSpambot(source_p))
|
||||||
check_spambot_warning(source_p, NULL);
|
check_spambot_warning(source_p, NULL);
|
||||||
|
|
||||||
while((ptr = source_p->user->channel.head))
|
|
||||||
{
|
|
||||||
msptr = ptr->data;
|
msptr = ptr->data;
|
||||||
chptr = msptr->chptr;
|
chptr = msptr->chptr;
|
||||||
sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s",
|
sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s",
|
||||||
|
|
Loading…
Reference in New Issue