]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-authid.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / newsearch / ns-authid.c
index 78c3cfa6e2f4a18056b2b6e82aa9c5c734891228..184a4a954b611a26c1b2c697a2f81a57a7ece116 100644 (file)
 void *authid_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void authid_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *authid_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *authid_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_NICK) {
-    parseError = "authid: 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;