you can use groups, which is the ability to turn chuncks of code on and off
below i have called the "group" xtry see the #xtry group directive, it is initiallt disabled/OFF "#xtry off" and the group ends at "#xtry end"
becuase its disabled the alias "xtry" in it does not function, so if you tyrp /xtry it runs the one below it outside the group
this turns the group ON, and so the next time you run /xtry the one iside the group is located first and run, whcih switches it off again.
Also insode the group is the ON JOIN event, which only runs when the group is enabled/ON
#xtry off
on 1!:JOIN:#: {
if ($nick != Dylan666_) {
msg $nick hello guy whoever you are!
}
else {
msg $nick hi dear old firend!
}
}
alias xtry { .disable #xtry | echo -a Xtry OFF }
#xtry end
alias xtry { .enable #xtry | echo -a Xtry ON }
** my naming the group xtry and the alias xtry was just for convenence there is no codistic need for this **
[i]edit, just corercted the on join event removing %nick and adding $nick