Clean up duplication in ChannelModeFunc prototypes (#52)

This commit is contained in:
Eric Mertens 2020-11-07 16:45:12 -08:00 committed by GitHub
parent 7393690255
commit 92c6e47b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 33 deletions

View file

@ -1512,7 +1512,7 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
for (ms = modesets; ms < mend; ms++)
{
ChannelModeFunc set_func = ms->cm->set_func;
ChannelModeFunc *set_func = ms->cm->set_func;
if (set_func == NULL)
set_func = chm_nosuch;
set_func(fakesource_p, chptr, alevel, ms->arg, &errors, ms->dir, ms->mode, ms->cm->mode_type);