X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b76037ebf0c2dbf8860a0899c9051ff589498cba..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-or.c diff --git a/newsearch/ns-or.c b/newsearch/ns-or.c index 6f0cbdf5..e2808b31 100644 --- a/newsearch/ns-or.c +++ b/newsearch/ns-or.c @@ -15,7 +15,7 @@ struct or_localdata { searchNode **nodes; }; -struct searchNode *or_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *or_parse(searchCtx *ctx, int argc, char **argv) { searchNode *thenode, *subnode; struct or_localdata *localdata; int i; @@ -48,7 +48,7 @@ struct searchNode *or_parse(searchCtx *ctx, int type, int argc, char **argv) { thenode->free = or_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); /* BOOL please */ if (subnode) { localdata->nodes[localdata->count++] = subnode;