added capability for custom event handler functions in irc_events.

Signed-off-by: Miethop <miethpomail@yahoo.co.uk>