Ahhh yes, Raw 0 has a number of functions on my network, one which I remember is the ROLL function, which is like rolling a pair of dice. I think the other is for the SILENCE function if my memory serves me correctly.
Most IRCd's don't support the above so that is why you won't find much information on it.
raw *:*: {
if ($numeric == 0) {
if ($chr(33) !isin $1) {
echo $colour(ctcp) -ta Roll of the dice: $2-
haltdef
}
if ($chr(33) isin $1 && $chr(43) isin $1) {
echo $colour(info2) -ta Silence added $1-
haltdef
}
if ($chr(33) isin $1 && $chr(43) !isin $1) {
echo $colour(info2) -ta Silence removed $1-
haltdef
}
}
}
I structure my stuff like that. When KNOCK is finally supported on my network, and I know it will happen, I'll just add it there (if they include it on Raw 0 of course). If you want to see the structure of the raw event just open a debug window and get someone to send you a KNOCK.