]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-topic.c
CHANSERV: reduce reason to 15 chars
[irc/quakenet/newserv.git] / newsearch / ns-topic.c
index 9260af3e3a377f46b8296d28b5d38ac2c654ec2f..4bb44f5c72c4a64db6ad9cd95540b46efe209704 100644 (file)
@@ -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.";