There's no reason to use get_channel_access() in chm_forward, use is_any_op() instead.

This commit is contained in:
B.Greenham 2010-02-27 23:44:14 -05:00
parent e2e3509129
commit 154760066c
1 changed files with 1 additions and 1 deletions

View File

@ -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);