write testing.txt $1-
Replace with
write testing.txt <add new text here> $1- <and also here>
use $1, $2, $3 to get the words you looking for.
on *:text:*:*: { if ($nick == Change-to-nick-here) { write testing.txt $1- | echo -a $2 is the second word in the line } }