on *:join:*: {
set %j $chan
set %s $address($nick,2)
set %s1 %s $+ : $+ $nick
if ( %j == #channel ) && ( %s isin $read(blah.txt,w,%s) ) && ( %s isin $ialchan($nick,#channel,2) ) { set %s2 $readn + 1 | echo 4 #channel ***** %s1 has entered before as $read(blah.txt,%s2) }
else {
write blah.txt %s | write blah.txt %s1
}
}