summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/m_message.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/core/m_message.c b/modules/core/m_message.c
index 8d9f9d8..59a77c8 100644
--- a/modules/core/m_message.c
+++ b/modules/core/m_message.c
@@ -447,14 +447,12 @@ msg_client(int p_or_n, const char *command, struct Client *source_p,
* and flooding -- fl
*/
if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
- (MyClient(source_p) &&
- !flood_attack_client(p_or_n, source_p, target_p)))
+ !flood_attack_client(p_or_n, source_p, target_p))
sendto_anywhere(target_p, source_p, command, ":%s", text);
}
}
else if (!MyClient(source_p) || HasUMode(source_p, UMODE_OPER) ||
- (MyClient(source_p) &&
- !flood_attack_client(p_or_n, source_p, target_p)))
+ !flood_attack_client(p_or_n, source_p, target_p))
sendto_anywhere(target_p, source_p, command, ":%s", text);
}