]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/newsearch/csns-qlasthost.c
newsearch changes to support addition of trust_search/patriciasearch
[irc/quakenet/newserv.git] / chanserv / newsearch / csns-qlasthost.c
index 0aba845285ce2654193ccca4782ebabee3d81c23..6e300ad2552096ea8cbf67a8f6db81cc75792691 100644 (file)
 void *qlasthost_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void qlasthost_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *qlasthost_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *qlasthost_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_USER) {
-    parseError = "qlasthost: 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;