X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/1f980bdf5093d59a9d2664b79527c494a03c4347..211567363bd8bfbd70cef81e4208ea02d49ebb55:/newsearch/ns-authid.c diff --git a/newsearch/ns-authid.c b/newsearch/ns-authid.c index 78c3cfa6..184a4a95 100644 --- a/newsearch/ns-authid.c +++ b/newsearch/ns-authid.c @@ -10,14 +10,9 @@ 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;