]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-host.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-host.c
index d28f58c15daf8103e899e56df44c318f08e1dabe..ab9318d3794daaf39e94d6848870c2db228206ad 100644 (file)
@@ -14,10 +14,10 @@ void *host_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void *host_exe_real(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void host_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *host_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *host_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_NICK) {
+  if (ctx->type != SEARCHTYPE_NICK) {
     parseError = "host: this function is only valid for nick searches.";
     return NULL;
   }