X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/1f980bdf5093d59a9d2664b79527c494a03c4347..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-hostpct.c diff --git a/newsearch/ns-hostpct.c b/newsearch/ns-hostpct.c index 4ffe09f3..ca87951a 100644 --- a/newsearch/ns-hostpct.c +++ b/newsearch/ns-hostpct.c @@ -10,14 +10,9 @@ 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) { - parseError = "uniquehostpct: this function is only valid for channel searches."; - return NULL; - } - if (!(thenode=(struct searchNode *)malloc(sizeof(struct searchNode)))) { /* couldn't malloc() memory for thenode, so free localdata to avoid leakage */ parseError = "malloc: could not allocate memory for this search.";