flume.event.on(name, callback). The callback receives a table (Lua) or dict (Python) with the fields listed below.
Scripting
Events
IRC events your scripts can listen to
Register handlers with