X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/da1d89d5558fe9db3274900bffe47ec53d63da68..211567363bd8bfbd70cef81e4208ea02d49ebb55:/newsearch/ns-exists.c diff --git a/newsearch/ns-exists.c b/newsearch/ns-exists.c index 1418197d..63d66134 100644 --- a/newsearch/ns-exists.c +++ b/newsearch/ns-exists.c @@ -10,14 +10,9 @@ void *exists_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void exists_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *exists_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *exists_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_CHANNEL) { - parseError = "exists: this function is only valid for channel searches."; - return NULL; - } - if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) { parseError = "malloc: could not allocate memory for this search."; return NULL;