mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
channel: Remove write-only field.
This commit is contained in:
parent
51452a370b
commit
0f8db0552e
2 changed files with 4 additions and 9 deletions
|
@ -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,
|
||||
|
|
12
src/chmode.c
12
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue