]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-var.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-var.c
index 26ff28d45a2c427491cc40d643c7472d4c74049e..28c9d28f00e62907644f8296aa89f621bc8fce0f 100644 (file)
@@ -7,11 +7,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-struct searchNode *var_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *var_parse(searchCtx *ctx, int argc, char **argv) {
   if(argc < 1) {
     parseError = "var: usage: var variable";
     return NULL;
   }
   
-  return var_get(ctx, type, argv[0]);
+  return var_get(ctx, argv[0]);
 }