]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-hostpct.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-hostpct.c
index 4ffe09f3fafa4b144889f2567f09ed886c84d720..45676afbde43609548e7f76ceba195324749085f 100644 (file)
 void *hostpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void hostpct_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *hostpct_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *hostpct_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_CHANNEL) {
+  if (ctx->type != SEARCHTYPE_CHANNEL) {
     parseError = "uniquehostpct: this function is only valid for channel searches.";
     return NULL;
   }