Do not check floodcount if user is messaging self.

This commit is contained in:
Jilles Tjoelker 2008-07-13 13:35:43 +02:00
parent 189b86d258
commit 351d22c09b

View file

@ -767,7 +767,7 @@ flood_attack_client(int p_or_n, struct Client *source_p, struct Client *target_p
{
int delta;
if(GlobalSetOptions.floodcount && MyConnect(target_p) && IsClient(source_p))
if(GlobalSetOptions.floodcount && MyConnect(target_p) && IsClient(source_p) && source_p != target_p)
{
if((target_p->localClient->first_received_message_time + 1) < rb_current_time())
{