on !*:JOIN:#chan: { if ($read(nicks.txt,w,$+($nick,!*))) return write nicks.txt $+($nick,!) msg $nick MOTD goes here }