]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-topic.c
LUA: add function for channel chanop notice
[irc/quakenet/newserv.git] / newsearch / ns-topic.c
index 10486121dfe8fc0d8902ffd0137367580a959fe4..4bb44f5c72c4a64db6ad9cd95540b46efe209704 100644 (file)
 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.";