X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/a6f4368b96eddd86504da0964039fb9b02b41214..43f8445df3a9fc9b3bf134bf243de94a29c32804:/modules/core/m_message.c diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 96da9d2e..21c93af4 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -44,6 +44,7 @@ #include "event.h" #include "patricia.h" #include "s_newconf.h" +#include "s_stats.h" static int m_message(int, const char *, struct Client *, struct Client *, int, const char **); static int m_privmsg(struct Client *, struct Client *, int, const char **); @@ -609,6 +610,7 @@ add_target(struct Client *source_p, struct Client *target_p) /* cant clear any, full target list */ else if(USED_TARGETS(source_p) == 10) { + ServerStats->is_tgch++; add_tgchange(source_p->sockhost); return 0; } @@ -781,7 +783,7 @@ flood_attack_client(int p_or_n, struct Client *source_p, struct Client *target_p { if(target_p->localClient->flood_noticed == 0) { - sendto_realops_snomask(SNO_BOTS, L_ALL, + sendto_realops_snomask(SNO_BOTS, L_NETWIDE, "Possible Flooder %s[%s@%s] on %s target: %s", source_p->name, source_p->username, source_p->orighost, @@ -836,7 +838,7 @@ flood_attack_channel(int p_or_n, struct Client *source_p, struct Channel *chptr, { if(chptr->flood_noticed == 0) { - sendto_realops_snomask(SNO_BOTS, L_ALL, + sendto_realops_snomask(SNO_BOTS, *chptr->chname == '&' ? L_ALL : L_NETWIDE, "Possible Flooder %s[%s@%s] on %s target: %s", source_p->name, source_p->username, source_p->orighost,