]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas_commands.c
Merge pull request #1 from meeb/meeb
[irc/quakenet/newserv.git] / whowas / whowas_commands.c
index 50337b4c52a9704f2f138abba0ddc6bfeaa38c91..db688ae29dfd2de7759e958821710a72bd35bba6 100644 (file)
@@ -26,8 +26,8 @@ static int whowas_cmdwhowas(void *source, int cargc, char **cargv) {
   if (cargc > 1)
     limit = strtol(cargv[1], NULL, 10);
 
-  for (i = whowasoffset; i < whowasoffset + WW_MAXENTRIES; i++) {
-    ww = &whowasrecs[i % WW_MAXENTRIES];
+  for (i = whowasoffset; i < whowasoffset + whowasmax; i++) {
+    ww = &whowasrecs[i % whowasmax];
 
     if (ww->type == WHOWAS_UNUSED)
       continue;