X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/b76037ebf0c2dbf8860a0899c9051ff589498cba..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-channel.c diff --git a/newsearch/ns-channel.c b/newsearch/ns-channel.c index 934698de..9395ba47 100644 --- a/newsearch/ns-channel.c +++ b/newsearch/ns-channel.c @@ -12,11 +12,11 @@ void *channel_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void channel_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *channel_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *channel_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; channel *cp; - if (type != SEARCHTYPE_NICK) { + if (ctx->type != SEARCHTYPE_NICK) { parseError = "channel: this function is only valid for nick searches."; return NULL; }