convert channel names to lowercase
rename module leave → chan
re-add msg param to events
add raw event
use hostmask instead for admin check