]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/newsearch.c
CHANSERV: reduce reason to 15 chars
[irc/quakenet/newserv.git] / newsearch / newsearch.c
index 083723df6e9dfe02833facc4f2195c89c8f6fa43..3d4e46f93ad8a74cd865fdd251ef0b0802259b64 100644 (file)
@@ -634,8 +634,8 @@ void whowassearch_exe(struct searchNode *search, searchCtx *ctx) {
   /* The top-level node needs to return a BOOL */
   search=coerceNode(ctx, search, RETURNTYPE_BOOL);
 
-  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;