Fix regressions in can_send() caused by hooking it for override and modularized channel modules.

This commit is contained in:
William Pitcock 2010-12-11 20:21:47 -06:00
parent 6816e3387a
commit e06988c6de

View file

@ -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)
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;
}
if(is_chanop_voiced(msptr))
moduledata.approved = CAN_SEND_OPV;
call_hook(h_can_send, &moduledata);
return moduledata.approved;