mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-08 13:43:13 +02:00
Opers with v in O line flags can dechanown/dechanprot people
This commit is contained in:
@@ -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
|
||||
===================================
|
||||
|
||||
|
||||
+2
-2
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user