1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 05:03:12 +02:00

struct stats *ircstp; -> IRCStatistics ircstats; (for statistics, /STATS)

This commit is contained in:
Bram Matthys
2019-09-15 14:48:45 +02:00
parent bea2564e5d
commit c7c3fbdfa8
9 changed files with 60 additions and 59 deletions
+5 -5
View File
@@ -197,13 +197,13 @@ int parse2(Client *cptr, Client **fromptr, MessageTag *mtags, char *ch)
if (!from)
{
ircstp->is_unpf++;
ircstats.is_unpf++;
remove_unknown(cptr, sender);
return -1;
}
if (from->direction != cptr)
{
ircstp->is_wrdi++;
ircstats.is_wrdi++;
return cancel_clients(cptr, from, ch);
}
*fromptr = from; /* Update source client */
@@ -216,7 +216,7 @@ int parse2(Client *cptr, Client **fromptr, MessageTag *mtags, char *ch)
if (*ch == '\0')
{
ircstp->is_empt++;
ircstats.is_empt++;
Debug((DEBUG_NOTICE, "Empty message from host %s:%s",
cptr->name, from->name));
if (!IsServer(cptr))
@@ -243,7 +243,7 @@ int parse2(Client *cptr, Client **fromptr, MessageTag *mtags, char *ch)
numeric = (*ch - '0') * 100 + (*(ch + 1) - '0') * 10
+ (*(ch + 2) - '0');
paramcount = MAXPARA;
ircstp->is_num++;
ircstats.is_num++;
}
else
{
@@ -297,7 +297,7 @@ int parse2(Client *cptr, Client **fromptr, MessageTag *mtags, char *ch)
ch, get_client_name(cptr, TRUE)));
parse_addlag(cptr, bytes);
}
ircstp->is_unco++;
ircstats.is_unco++;
return (-1);
}
if (cmptr->flags != 0) { /* temporary until all commands are updated */