Code:
 
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
  }
}


i dont get any errors but the script doesnt work i have tryed alot of variations but still havent gotten it can you tell me whats wrong ? it writes fine but the rest doesnt work thx in advance