X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/354b14ea09f3b6c5c4edab5b4fd0553415787196..211567363bd8bfbd70cef81e4208ea02d49ebb55:/newsearch/ns-authedpct.c diff --git a/newsearch/ns-authedpct.c b/newsearch/ns-authedpct.c index 42ddee2f..f8b67dce 100644 --- a/newsearch/ns-authedpct.c +++ b/newsearch/ns-authedpct.c @@ -10,14 +10,9 @@ void *authedpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void authedpct_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *authedpct_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *authedpct_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_CHANNEL) { - parseError = "authedpct: this function is only valid for channel searches."; - return NULL; - } - if (!(thenode=(struct searchNode *)malloc(sizeof(struct searchNode)))) { /* couldn't malloc() memory for thenode, so free localdata to avoid leakage */ parseError = "malloc: could not allocate memory for this search."; @@ -37,10 +32,7 @@ void *authedpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) int j=0; nick *np; chanindex *cip = (chanindex *)theinput; - struct authedpct_localdata *localdata; - localdata = thenode->localdata; - if (!cip->channel) return (void *)0;