From 9aa639eddddf888b094204a7c77693b653ef334c Mon Sep 17 00:00:00 2001 From: Matt Ullman Date: Thu, 24 Mar 2016 14:26:02 -0400 Subject: [PATCH] chmode: Move allow_mode_change() to a boolean --- ircd/chmode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ircd/chmode.c b/ircd/chmode.c index cefcdbd3..27fc899d 100644 --- a/ircd/chmode.c +++ b/ircd/chmode.c @@ -202,10 +202,10 @@ get_channel_access(struct Client *source_p, struct Channel *chptr, struct member * Checks if mlock and chanops permit a mode change. * * inputs - client, channel, access level, errors pointer, mode char - * outputs - 0 on failure, 1 on success + * outputs - false on failure, true on success * side effects - error message sent on failure */ -static int +static bool allow_mode_change(struct Client *source_p, struct Channel *chptr, int alevel, int *errors, char c) { @@ -220,7 +220,7 @@ allow_mode_change(struct Client *source_p, struct Channel *chptr, int alevel, c, chptr->mode_lock); *errors |= SM_ERR_MLOCK; - return 0; + return false; } if(alevel < CHFL_CHANOP) { @@ -228,9 +228,9 @@ allow_mode_change(struct Client *source_p, struct Channel *chptr, int alevel, sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), me.name, source_p->name, chptr->chname); *errors |= SM_ERR_NOOPS; - return 0; + return false; } - return 1; + return true; } /* add_id()