From 85b8e6497deb6020061522b76afffae6e52573d7 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 13 Jul 2008 13:35:43 +0200 Subject: [PATCH] Do not check floodcount if user is messaging self. --- modules/core/m_message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/m_message.c b/modules/core/m_message.c index b65527e..c2e337c 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -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()) {