There's no reason to use get_channel_access() in chm_forward, use is_any_op() instead.
This commit is contained in:
parent
e2e3509129
commit
154760066c
|
@ -1176,7 +1176,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 ||
|
||||
get_channel_access(source_p, msptr) != CHFL_CHANOP)
|
||||
is_any_op(msptr))
|
||||
{
|
||||
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
|
||||
me.name, source_p->name, targptr->chname);
|
||||
|
|
Loading…
Reference in New Issue