on *:JOIN:#: { if ($nick == $me) {can just be:
on me:*:JOIN:#: {
you save yourself an if statement and a bracket.
I'm not saying the nick = me is a bad usage; it's just there's no true and false comparison.