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:
B.Greenham 2010-07-28 20:26:13 -04:00
parent cdec335449
commit e0b0e08d25
1 changed files with 1 additions and 1 deletions

View File

@ -1582,7 +1582,7 @@ chm_forward(struct Client *source_p, struct Channel *chptr,
if(MyClient(source_p) && !(targptr->mode.mode & MODE_FREETARGET))
{
if((msptr = find_channel_membership(targptr, source_p)) == NULL ||
is_any_op(msptr))
!is_any_op(msptr))
{
if(IsOverride(source_p))
override = 1;