mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
Don't bother running the can_send() hook if we're not on the channel.
This commit is contained in:
parent
a7675ed255
commit
b697041e2a
1 changed files with 2 additions and 0 deletions
|
@ -850,6 +850,8 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
|
||||||
moduledata.approved = CAN_SEND_NO;
|
moduledata.approved = CAN_SEND_NO;
|
||||||
else
|
else
|
||||||
moduledata.approved = CAN_SEND_NONOP;
|
moduledata.approved = CAN_SEND_NONOP;
|
||||||
|
|
||||||
|
return moduledata.approved;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue