]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-topic.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-topic.c
index 10486121dfe8fc0d8902ffd0137367580a959fe4..9260af3e3a377f46b8296d28b5d38ac2c654ec2f 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) {
+  if (ctx->type != SEARCHTYPE_CHANNEL) {
     parseError = "topic: this function is only valid for channel searches.";
     return NULL;
   }