can_send: properly initalise moduledata.
This commit is contained in:
parent
0d165b5262
commit
f4b52a0ad3
1 changed files with 5 additions and 0 deletions
|
@ -895,6 +895,11 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
|
|||
if(is_chanop_voiced(msptr))
|
||||
moduledata.approved = CAN_SEND_OPV;
|
||||
|
||||
moduledata.client = source_p;
|
||||
moduledata.chptr = msptr->chptr;
|
||||
moduledata.msptr = msptr;
|
||||
moduledata.target = NULL;
|
||||
|
||||
call_hook(h_can_send, &moduledata);
|
||||
|
||||
return moduledata.approved;
|
||||
|
|
Loading…
Reference in a new issue