When nick1 joins the channel the nickname and host must be stored in a text file.
If nick1 change his nick to nick2 this nick2 also stored next to nick1 because the host hasn't changed. If he left irc and changes his nick to nick3 and joins nick3 also stored next to his host.
I would like to write out automatically to the channel what nicks belong to the host in the last 48hrs when a user joins. This 48hrs should be a variable in the script.
Example: nick1 (user@this.is.his.host) has joined this channel.
<bot> nick1 (this.is.his.host) also known as: nick2, nick3, nick4 in the last 48 hrs.