]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-size.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / newsearch / ns-size.c
index c66ebc6a57e8fd39b9fecd321df0c803bcb28e03..12e5acbd1cef69c391a2de3cc3a8753761806a46 100644 (file)
@@ -13,11 +13,6 @@ void size_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *size_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->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.";