X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/c8be51834cd64b873dbb45f00407d165296c0a52..cd9baaa220c4afdfbbb25d4c4f6c8aa1f02fe637:/newsearch/ns-topic.c diff --git a/newsearch/ns-topic.c b/newsearch/ns-topic.c index 10486121..4bb44f5c 100644 --- a/newsearch/ns-topic.c +++ b/newsearch/ns-topic.c @@ -10,14 +10,9 @@ void *topic_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput); void topic_free(searchCtx *ctx, struct searchNode *thenode); -struct searchNode *topic_parse(searchCtx *ctx, int type, int argc, char **argv) { +struct searchNode *topic_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (type != SEARCHTYPE_CHANNEL) { - parseError = "topic: 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.";