]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-hostpct.c
newsearch changes to support addition of trust_search/patriciasearch
[irc/quakenet/newserv.git] / newsearch / ns-hostpct.c
index 4ffe09f3fafa4b144889f2567f09ed886c84d720..ca87951ae07b34fb5608acab1245e9a2ec193b8a 100644 (file)
 void *hostpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void hostpct_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *hostpct_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *hostpct_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_CHANNEL) {
-    parseError = "uniquehostpct: 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.";