From f09313f08b8a580823f6aeced57cf790da28c11a Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 18 Jun 2015 08:14:05 +0200
Subject: kike: always allow IRCops to change channel modes
---
kike.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kike.c b/kike.c
index 8db90ab..1ec9099 100644
--- a/kike.c
+++ b/kike.c
@@ -1747,8 +1747,8 @@ mode_processor_next_param (struct mode_processor *self)
static bool
mode_processor_check_operator (struct mode_processor *self)
{
- if (self->user && ((self->user->modes & IRC_CHAN_MODE_OPERATOR)
- || (self->c->mode & IRC_USER_MODE_OPERATOR)))
+ if ((self->user && (self->user->modes & IRC_CHAN_MODE_OPERATOR))
+ || (self->c->mode & IRC_USER_MODE_OPERATOR))
return true;
irc_send_reply (self->c, IRC_ERR_CHANOPRIVSNEEDED, self->channel->name);
--
cgit v1.2.3-70-g09d2