summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-09 20:59:27 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-11-09 20:59:27 +0000
commited3d6553af00963cc8cab45d4498da50b0e8d187 (patch)
tree2d77dd983b30eee8567e1062529714fc3a6a5282
parent333476ecab13da9768eaea7ece68ea32ecd2515f (diff)
- channel_mode.c: fixed warnings with clang
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2533 82007160-df01-0410-b94d-b575c5fd34c7
-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 - */