X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/ad740380e68eca0756c5b869d3e013fb1acc7824..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-topic.c?ds=sidebyside diff --git a/newsearch/ns-topic.c b/newsearch/ns-topic.c index 9260af3e..4bb44f5c 100644 --- a/newsearch/ns-topic.c +++ b/newsearch/ns-topic.c @@ -13,11 +13,6 @@ void topic_free(searchCtx *ctx, struct searchNode *thenode); struct searchNode *topic_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - if (ctx->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.";