Just like Slade showed you above but with a different raw #.
raw 324:*: {
echo 9 -a $2 Modes: $3
}
$2 is optional it will return the "#channelname Modes: +whatevermodes" so removing the $2 will return "Modes: +whatevermodes"
Question: This isnt a real big problem just a curiosity.
I was trying out your raw command there Slade and i seem to be getting 2 returns on the event ... in other words on joining a channel i get the raw 324 and 329 twice. Any ideas why that might be happening?
Edit: If you want to know the raw event # for something type "/debug @debug" then do whatever to trigger the raw... aka whois a user , join a channel etc.