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

Fix crash shortly after THROTTLE RESET. Bug was introduced yesterday

with commit b4636f183c
This commit is contained in:
Bram Matthys
2019-09-22 08:24:05 +02:00
parent 97cf32c941
commit 784ba625ec
+1 -2
View File
@@ -81,7 +81,6 @@ void ucounter_free(ModData *m);
MOD_TEST()
{
memset(&cfg, 0, sizeof(cfg));
memset(&ucounter, 0, sizeof(ucounter));
/* Defaults: */
cfg.local.count = 20; cfg.local.period = 60;
@@ -597,7 +596,7 @@ CMD_FUNC(ct_throttle)
} else
if (!strcasecmp(parv[1], "RESET"))
{
memset(&ucounter, 0, sizeof(ucounter));
memset(ucounter, 0, sizeof(UCounter));
sendto_realops("[connthrottle] %s (%s@%s) did a RESET on the stats/counters!!",
sptr->name, sptr->user->username, sptr->user->realhost);
} else