channel: Remove write-only field.

This commit is contained in:
Jilles Tjoelker 2014-05-29 16:22:58 +02:00
parent 51452a370b
commit 0f8db0552e
2 changed files with 4 additions and 9 deletions

View file

@ -114,7 +114,6 @@ struct ChModeChange
const char *id;
int dir;
int mems;
struct Client *client;
};
typedef void (*ChannelModeFunc)(struct Client *source_p, struct Channel *chptr,

View file

@ -1020,8 +1020,7 @@ chm_op(struct Client *source_p, struct Channel *chptr,
mode_changes[mode_count].dir = MODE_ADD;
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count].id = targ_p->id;
mode_changes[mode_count].arg = targ_p->name;
mode_changes[mode_count++].client = targ_p;
mode_changes[mode_count++].arg = targ_p->name;
mstptr->flags |= CHFL_CHANOP;
}
@ -1038,8 +1037,7 @@ chm_op(struct Client *source_p, struct Channel *chptr,
mode_changes[mode_count].dir = MODE_DEL;
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count].id = targ_p->id;
mode_changes[mode_count].arg = targ_p->name;
mode_changes[mode_count++].client = targ_p;
mode_changes[mode_count++].arg = targ_p->name;
mstptr->flags &= ~CHFL_CHANOP;
}
@ -1095,8 +1093,7 @@ chm_voice(struct Client *source_p, struct Channel *chptr,
mode_changes[mode_count].dir = MODE_ADD;
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count].id = targ_p->id;
mode_changes[mode_count].arg = targ_p->name;
mode_changes[mode_count++].client = targ_p;
mode_changes[mode_count++].arg = targ_p->name;
mstptr->flags |= CHFL_VOICE;
}
@ -1106,8 +1103,7 @@ chm_voice(struct Client *source_p, struct Channel *chptr,
mode_changes[mode_count].dir = MODE_DEL;
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count].id = targ_p->id;
mode_changes[mode_count].arg = targ_p->name;
mode_changes[mode_count++].client = targ_p;
mode_changes[mode_count++].arg = targ_p->name;
mstptr->flags &= ~CHFL_VOICE;
}