summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channel_mode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/channel_mode.c b/src/channel_mode.c
index caeb851..14dad8c 100644
--- a/src/channel_mode.c
+++ b/src/channel_mode.c
@@ -588,7 +588,7 @@ chm_simple(struct Client *client_p, struct Client *source_p, struct Channel *chp
*
* -Dianora
*/
- if ((dir == MODE_ADD)) /* && !(chptr->mode.mode & mode_type)) */
+ if (dir == MODE_ADD) /* && !(chptr->mode.mode & mode_type)) */
{
chptr->mode.mode |= mode_type;
@@ -600,7 +600,7 @@ chm_simple(struct Client *client_p, struct Client *source_p, struct Channel *chp
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count++].arg = NULL;
}
- else if ((dir == MODE_DEL)) /* && (chptr->mode.mode & mode_type)) */
+ else if (dir == MODE_DEL) /* && (chptr->mode.mode & mode_type)) */
{
/* setting - */
@@ -650,7 +650,7 @@ chm_registered(struct Client *client_p, struct Client *source_p, struct Channel
*
* -Dianora
*/
- if ((dir == MODE_ADD)) /* && !(chptr->mode.mode & mode_type)) */
+ if (dir == MODE_ADD) /* && !(chptr->mode.mode & mode_type)) */
{
chptr->mode.mode |= mode_type;
@@ -662,7 +662,7 @@ chm_registered(struct Client *client_p, struct Client *source_p, struct Channel
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count++].arg = NULL;
}
- else if ((dir == MODE_DEL)) /* && (chptr->mode.mode & mode_type)) */
+ else if (dir == MODE_DEL) /* && (chptr->mode.mode & mode_type)) */
{
/* setting - */
@@ -719,7 +719,7 @@ chm_operonly(struct Client *client_p, struct Client *source_p, struct Channel *c
simple_modes_mask |= mode_type;
- if ((dir == MODE_ADD)) /* && !(chptr->mode.mode & mode_type)) */
+ if (dir == MODE_ADD) /* && !(chptr->mode.mode & mode_type)) */
{
chptr->mode.mode |= mode_type;
@@ -732,7 +732,7 @@ chm_operonly(struct Client *client_p, struct Client *source_p, struct Channel *c
mode_changes[mode_count].mems = ALL_MEMBERS;
mode_changes[mode_count++].arg = NULL;
}
- else if ((dir == MODE_DEL)) /* && (chptr->mode.mode & mode_type)) */
+ else if (dir == MODE_DEL) /* && (chptr->mode.mode & mode_type)) */
{
/* setting - */