If you want an event to only trigger if you are the reason it triggers, then you can use this construct:

on me:*:<event>:...

That avoids the check for if ($nick == $me)

Examples:

on me:*:join:#:{
;code
}

Less code, faster, and enables you to have multiple on join events in an event.

Similarly, if you want the event to only trigger if you are not the person causing the even to trigger you can use this:

on !*:join:#:{
;code
}

In contrast with doing:

on *:join:#:{
if ($nick != $me) {
; code
}
}


Gone.