]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-kick.c
SearchCtx should contain 'type' - this is to make life easier when defining new searc...
[irc/quakenet/newserv.git] / newsearch / ns-kick.c
index 67ad49f9009f5cc3d18a7195309f804659107e8c..7db84c61e2a52121a3ddfc4fd858c3670b382cc4 100644 (file)
 void *kick_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void kick_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *kick_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *kick_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
   nick *np;
   
-  if (type!=SEARCHTYPE_CHANNEL) {
+  if (ctx->type!=SEARCHTYPE_CHANNEL) {
     parseError="kick: only channel searches are supported";
     return NULL;
   }