X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/354b14ea09f3b6c5c4edab5b4fd0553415787196..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-ip.c diff --git a/newsearch/ns-ip.c b/newsearch/ns-ip.c index a96f7f1d..16c4d900 100644 --- a/newsearch/ns-ip.c +++ b/newsearch/ns-ip.c @@ -10,14 +10,9 @@ void *ip_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void ip_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *ip_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *ip_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_NICK) { - parseError = "ip: this function is only valid for nick searches."; - return NULL; - } - if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) { parseError = "malloc: could not allocate memory for this search."; return NULL;