From 0f8db0552e026cb1c9ee311f00472a456c7e06a2 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 29 May 2014 16:22:58 +0200 Subject: [PATCH] channel: Remove write-only field. --- include/channel.h | 1 - src/chmode.c | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/channel.h b/include/channel.h index 82f30548..0f8bd314 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 bb6f02e6..4ebb3724 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; }