X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/2729984e3c95b8a12d68dbeae568432fea550f0a..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-size.c?ds=sidebyside diff --git a/newsearch/ns-size.c b/newsearch/ns-size.c index b878d327..12e5acbd 100644 --- a/newsearch/ns-size.c +++ b/newsearch/ns-size.c @@ -10,14 +10,9 @@ void *size_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void size_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *size_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *size_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_CHANNEL) { - parseError = "size: 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.";