Do not check floodcount if user is messaging self.
This commit is contained in:
parent
189b86d258
commit
351d22c09b
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue