X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b76037ebf0c2dbf8860a0899c9051ff589498cba..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-and.c diff --git a/newsearch/ns-and.c b/newsearch/ns-and.c index 57046818..2a341c22 100644 --- a/newsearch/ns-and.c +++ b/newsearch/ns-and.c @@ -15,7 +15,7 @@ struct and_localdata { searchNode **nodes; }; -struct searchNode *and_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *and_parse(searchCtx *ctx, int argc, char **argv) { searchNode *thenode, *subnode; struct and_localdata *localdata; int i; @@ -48,7 +48,7 @@ struct searchNode *and_parse(searchCtx *ctx, int type, int argc, char **argv) { thenode->free = and_free; for (i=0;iparser(ctx, type, argv[i]); /* Propogate the search type */ + subnode=ctx->parser(ctx, argv[i]); /* Propogate the search type */ subnode=coerceNode(ctx, subnode, RETURNTYPE_BOOL); /* Needs to return BOOL */ if (subnode) { localdata->nodes[localdata->count++] = subnode;