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