]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/newsearch/csns-qemail.c
newsearch changes to support addition of trust_search/patriciasearch
[irc/quakenet/newserv.git] / chanserv / newsearch / csns-qemail.c
index 6db9fea5bfc840870ab2feda9488d941dd7eca27..ef451abd79f1d62cee9f4233c66a3699bfe0678e 100644 (file)
 void *qemail_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void qemail_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *qemail_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *qemail_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_USER) {
-    parseError = "qemail: this function is only valid for user searches.";
-    return NULL;
-  }
-
   if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) {
     parseError = "malloc: could not allocate memory for this search.";
     return NULL;