Can someone tell me, if I want to write a module for our network that does something when a PRIVMSG is sent (PRIVMSG user -> user, not user -> channel etc.) what hooks I should use?
What docs should I be looking at for the basics here? Is there a sample simple module to start with?

Thanks a lot,
Steve