]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-ident.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-ident.c
index 0459102dfbc1069e7db0c587f4afa74a4e9a11b0..825988cda2641f0bd309580d54b4db40f3bb26c4 100644 (file)
 void *ident_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void ident_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *ident_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *ident_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_NICK) {
-    parseError = "ident: this function is only valid for nick searches.";
-    return NULL;
-  }
-
   if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) {
     parseError = "malloc: could not allocate memory for this search.";
     return NULL;