X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b76037ebf0c2dbf8860a0899c9051ff589498cba..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-hostpct.c diff --git a/newsearch/ns-hostpct.c b/newsearch/ns-hostpct.c index 4ffe09f3..45676afb 100644 --- a/newsearch/ns-hostpct.c +++ b/newsearch/ns-hostpct.c @@ -10,10 +10,10 @@ void *hostpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void hostpct_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *hostpct_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *hostpct_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_CHANNEL) { + if (ctx->type != SEARCHTYPE_CHANNEL) { parseError = "uniquehostpct: this function is only valid for channel searches."; return NULL; }