#include <stdlib.h>
struct modes_localdata {
- int type;
flag_t setmodes;
flag_t clearmodes;
};
void *modes_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
void modes_free(searchCtx *ctx, struct searchNode *thenode);
-struct searchNode *modes_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *modes_parse(searchCtx *ctx, int argc, char **argv) {
struct modes_localdata *localdata;
struct searchNode *thenode;
const flag *flaglist;
return NULL;
}
- switch (type) {
+ switch (ctx->type) {
case SEARCHTYPE_CHANNEL:
flaglist=cmodeflags;
break;
return NULL;
}
- localdata->type=type;
localdata->setmodes=0;
localdata->clearmodes = ~0;
localdata = (struct modes_localdata *)thenode->localdata;
- switch (localdata->type) {
+ switch (ctx->type) {
case SEARCHTYPE_CHANNEL:
cip=(chanindex *)value;
if (!cip->channel)