]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-channel.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-channel.c
index 934698de8b4e0e9e1086df7e932885d76da28676..9395ba475f0b3b1d2cc6fa2c7f29b1e7310fbb69 100644 (file)
 void *channel_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void channel_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *channel_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *channel_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
   channel *cp;
 
-  if (type != SEARCHTYPE_NICK) {
+  if (ctx->type != SEARCHTYPE_NICK) {
     parseError = "channel: this function is only valid for nick searches.";
     return NULL;
   }