X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/1f980bdf5093d59a9d2664b79527c494a03c4347..78546f2b0f59b5c8fede1ce5535972716eb17041:/newsearch/ns-size.c 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.";