X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/a42744386c68b582b923eeaf6a7a6ffc7e00b31f..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-hostmask.c diff --git a/newsearch/ns-hostmask.c b/newsearch/ns-hostmask.c index ba4a6347..ae4f5492 100644 --- a/newsearch/ns-hostmask.c +++ b/newsearch/ns-hostmask.c @@ -14,10 +14,10 @@ void *hostmask_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void *hostmask_exe_real(searchCtx *ctx, struct searchNode *thenode, void *theinput); void hostmask_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *hostmask_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *hostmask_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_NICK) { + if (ctx->type != SEARCHTYPE_NICK) { parseError = "hostmask: this function is only valid for nick searches."; return NULL; }