]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas.c
Add documentation files.
[irc/quakenet/newserv.git] / whowas / whowas.c
index 3809eb77139979af84378fb9b0f3c182c0cb3415..c2cece6d743f41be19dd10763a06871e9545faf4 100644 (file)
@@ -172,7 +172,7 @@ const char *whowas_format(whowas *ww) {
   snprintf(hostmask, sizeof(hostmask), "%s!%s@%s%s%s [%s] (%s)",
            np->nick, np->ident, np->host->name->content,
            np->auth ? "/" : "", np->auth ? np->authname : "",
-           IPtostr(np->p_ipaddr),
+           IPtostr(np->ipaddress),
            printflags(np->umodes, umodeflags));
   strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime(&(ww->timestamp)));
 
@@ -219,7 +219,7 @@ void _fini(void) {
   deregisterhook(HOOK_NICK_RENAME, whowas_handlerename);
 
   for (i = 0; i < WW_MAXENTRIES; i++) {
-    ww = &whowasrecs[i % WW_MAXENTRIES];
+    ww = &whowasrecs[i];
     whowas_clean(ww);
   }
 }