From d14f1af6502e76a8f2f58324f0177cd51db8dc20 Mon Sep 17 00:00:00 2001 From: luke Date: Sun, 6 Apr 2003 00:31:18 +0000 Subject: [PATCH] Opers with v in O line flags can dechanown/dechanprot people --- Changes | 4 ++++ src/channel.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 5d0cb6bcb..342715b25 100644 --- a/Changes +++ b/Changes @@ -838,4 +838,8 @@ Fixed bug where HCN would display exit client notices twice. --Luke =================================== +Modified it so people with override flag in O line can +dechanown, dechanprot people. +--Luke +=================================== diff --git a/src/channel.c b/src/channel.c index f32246629..78327e2df 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1724,7 +1724,7 @@ int do_mode_char(chptr, modetype, modechar, param, what, cptr, pcount, pvar, if (is_chanowner(member->value.cptr, chptr) && member->value.cptr != cptr && !is_chanowner(cptr, chptr) - && !IsNetAdmin(cptr) && (what == MODE_DEL)) + && !opermode && (what == MODE_DEL)) { if (MyClient(cptr)) { @@ -1739,7 +1739,7 @@ int do_mode_char(chptr, modetype, modechar, param, what, cptr, pcount, pvar, && member->value.cptr != cptr && !is_chanowner(cptr, chptr) && modetype != MODE_CHANOWNER && (what == MODE_DEL) - && !IsOper(cptr)) + && !opermode) { if (MyClient(cptr)) {