Nice work, but you should add an on nick event, as suggested, to make this script complete in detecting nick changes to reflect the "last seen" users.