0
0
Fork 0
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:
William Pitcock 2010-12-14 22:57:23 -06:00
parent a7675ed255
commit b697041e2a

View file

@ -850,6 +850,8 @@ can_send(struct Channel *chptr, struct Client *source_p, struct membership *mspt
moduledata.approved = CAN_SEND_NO;
else
moduledata.approved = CAN_SEND_NONOP;
return moduledata.approved;
}
}