Show some target change statistics in /stats t.
- the number of messages blocked by target change on this server since it was started - the number of IPs currently subject to a a lower target limit on this server (these expire over time)
This commit is contained in:
parent
a65f9880f6
commit
43f8445df3
3 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue