]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-nick.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / newsearch / ns-nick.c
index 8916fc85fccaf03c39ead9c1bffaa8cf0ad520b5..e247684ce9325e63fccc7c1c48f401d330169da1 100644 (file)
@@ -45,17 +45,13 @@ struct searchNode *nick_parse(searchCtx *ctx, int argc, char **argv) {
       free(localdata);
       return NULL;
     }
-  } else if (ctx->searchcmd == reg_nicksearch || ctx->searchcmd == reg_whowassearch) {
+  } else {
     if (argc) {
       parseError="nick: usage: (match (nick) target)";
       free(localdata);
       return NULL;
     }
     localdata->np = NULL;
-  } else {
-    parseError="nick: invalid search command";
-    free(localdata);
-    return NULL;
   }
 
   if (!(thenode=(struct searchNode *)malloc(sizeof(struct searchNode)))) {