Channel hooks are small programs that get run whenever something happens on a channel.

They work in exactly the same way as plugins except that while channel plugins are run whenever the channel needs to be updated, channel hooks are run whenever an event occurs on the channel.

This section assumes that you are already familiar with how plugins work.