You simply /write it to the file.
I imagine you're using a on text event and writing $2 to the file. Just use $2- instead and write after $2 with it. This would be consistent throughout the file, using the NICK first and then the added text after. Consistency is key when it comes to scripts like that.

You might want to look into changing the delete feature for this though to make sure the first token "if ($gettok($read(file,nw,$2),1,32) == $2)" of the $read line is the match you're looking for.
This may or may not require you to use wildcard indicators though since your lines will have more than just $2 in it.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net