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 e23905e60d
commit 85b8e6497d
1 changed files with 1 additions and 1 deletions

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())
{