X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/15a91b41493c79276ca1e59c09500eeb0fea888d..f33f3f52f58acdd2b9b6796713ac8f24d9881545:/newsearch/ns-country.c diff --git a/newsearch/ns-country.c b/newsearch/ns-country.c index 3608156f..7bdb1571 100644 --- a/newsearch/ns-country.c +++ b/newsearch/ns-country.c @@ -17,12 +17,12 @@ void country_free(searchCtx *ctx, struct searchNode *thenode); int ext; -struct searchNode *country_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *country_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; GeoIP_LookupCode l; long target; - if (type != SEARCHTYPE_NICK) { + if (ctx->type != SEARCHTYPE_NICK) { parseError = "country: this function is only valid for nick searches."; return NULL; }