Fix regressions in can_send() caused by hooking it for override and modularized channel modules.
This commit is contained in:
parent
6816e3387a
commit
e06988c6de
1 changed files with 3 additions and 3 deletions
|
@ -853,9 +853,6 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_chanop_voiced(msptr))
|
|
||||||
moduledata.approved = CAN_SEND_OPV;
|
|
||||||
|
|
||||||
if(chptr->mode.mode & MODE_MODERATED)
|
if(chptr->mode.mode & MODE_MODERATED)
|
||||||
moduledata.approved = CAN_SEND_NO;
|
moduledata.approved = CAN_SEND_NO;
|
||||||
|
|
||||||
|
@ -872,6 +869,9 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
|
||||||
moduledata.approved = CAN_SEND_NO;
|
moduledata.approved = CAN_SEND_NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_chanop_voiced(msptr))
|
||||||
|
moduledata.approved = CAN_SEND_OPV;
|
||||||
|
|
||||||
call_hook(h_can_send, &moduledata);
|
call_hook(h_can_send, &moduledata);
|
||||||
|
|
||||||
return moduledata.approved;
|
return moduledata.approved;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue