Fix a bug that allowed users to set forwards to channels they lack ops in (and not set forwards to channels they have ops in).
This commit is contained in:
parent
cdec335449
commit
e0b0e08d25
|
@ -1582,7 +1582,7 @@ chm_forward(struct Client *source_p, struct Channel *chptr,
|
||||||
if(MyClient(source_p) && !(targptr->mode.mode & MODE_FREETARGET))
|
if(MyClient(source_p) && !(targptr->mode.mode & MODE_FREETARGET))
|
||||||
{
|
{
|
||||||
if((msptr = find_channel_membership(targptr, source_p)) == NULL ||
|
if((msptr = find_channel_membership(targptr, source_p)) == NULL ||
|
||||||
is_any_op(msptr))
|
!is_any_op(msptr))
|
||||||
{
|
{
|
||||||
if(IsOverride(source_p))
|
if(IsOverride(source_p))
|
||||||
override = 1;
|
override = 1;
|
||||||
|
|
Loading…
Reference in New Issue