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;
}
}