Hi any1 can fix this script?

Code:
on *:join:#lobby:{      
  var %t = $read(lobby.txt,w,$+(*,$address *))
  if (%t == 0) {
    var %lobby = $read(lobby.txt,w,$+(*,$nick *)), %lobby.ln = $readn
    inc %lobby.ln
    write $iif(%lobby.ln,$+(-il,$v1)) lobby.txt $nick $address - $date $time
  }
}


@whenevery nick join to #lobby there nicks and ip address and time date they join before is not store in lobby.txt file.. please fix thnk you..

-ricfaus