]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-exists.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / newsearch / ns-exists.c
index ad1fe4befc4a8c039821bc81518d036c41b88f43..63d6613472144a47fed0a150ba5903e450c57a58 100644 (file)
@@ -13,11 +13,6 @@ void exists_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *exists_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->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;