summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/core/m_kick.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c
index 3d9bfd5..888b7d8 100644
--- a/modules/core/m_kick.c
+++ b/modules/core/m_kick.c
@@ -148,8 +148,7 @@ m_kick(struct Client *client_p, struct Client *source_p,
/* half ops cannot kick other halfops on private channels */
if (has_member_flags(ms_source, CHFL_HALFOP) && !has_member_flags(ms_source, CHFL_CHANOP))
{
- if (((chptr->mode.mode & MODE_PRIVATE) && has_member_flags(ms_target,
- CHFL_CHANOP|CHFL_HALFOP)) || has_member_flags(ms_target, CHFL_CHANOP))
+ if (has_member_flags(ms_target, CHFL_CHANOP|CHFL_HALFOP))
{
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
me.name, source_p->name, chptr->chname);