diff --git a/include/channel.h b/include/channel.h index 82f30548b..0f8bd3146 100644 --- a/include/channel.h +++ b/include/channel.h @@ -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, diff --git a/src/chmode.c b/src/chmode.c index bb6f02e6c..4ebb3724e 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -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; }