From fdd0b6ccf1418019192b33d4c35604ea07afff9d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 21 Feb 2010 01:45:51 +0100 Subject: [PATCH] Do not penalize for spambot checks if creating a new channel. --- modules/core/m_join.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 3c3f757..c01aba7 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -305,7 +305,8 @@ 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)) + if(flags == 0 && + !IsOper(source_p) && !IsExemptSpambot(source_p)) check_spambot_warning(source_p, name); /* add the user to the channel */