From: Gunnar Beutner Date: Thu, 8 Aug 2013 21:28:34 +0000 (+0200) Subject: whowas: Properly initialize whowas records. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/8bf191361d8ffd52d9cc338a1d90145531d5b436 whowas: Properly initialize whowas records. --- diff --git a/whowas/whowas.c b/whowas/whowas.c index c7e2450d..5764ecac 100644 --- a/whowas/whowas.c +++ b/whowas/whowas.c @@ -238,6 +238,8 @@ unsigned int nextwhowasmarker() { } void _init(void) { + memset(whowasrecs, 0, sizeof(whowasrecs)); + registerhook(HOOK_NICK_QUIT, whowas_handlequitorkill); registerhook(HOOK_NICK_KILL, whowas_handlequitorkill); registerhook(HOOK_NICK_RENAME, whowas_handlerename);