X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/a42744386c68b582b923eeaf6a7a6ffc7e00b31f..3e1b768066a16c4b899b9cbdd7911be883151a05:/newsearch/ns-authname.c diff --git a/newsearch/ns-authname.c b/newsearch/ns-authname.c index 9feab161..f1e299b3 100644 --- a/newsearch/ns-authname.c +++ b/newsearch/ns-authname.c @@ -10,14 +10,9 @@ void *authname_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void authname_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *authname_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *authname_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_NICK) { - parseError = "authname: 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;