on *:text:!editcom ip *:#: write -c ip.txt $3-
on *:text:!ip:#: msg # $iif($read(ip.txt,n),$v1,No ip recorded)
Thank you Wims, may or may not have written this without actually checking what I've written. Doesn't help that I'm usually using size 14 in the scripts editor and this size is a bit too small for my eyesight :P