From 154760066c0cfb32b65ba91ae12224089fbfecd7 Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Sat, 27 Feb 2010 23:44:14 -0500 Subject: [PATCH] There's no reason to use get_channel_access() in chm_forward, use is_any_op() instead. --- src/chmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chmode.c b/src/chmode.c index fdb2604..7121e26 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -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);