[eluser]OverZealous[/eluser] @12vunion
The only drawback to your code is you can never edit the item, or the IP address will be overwritten. If that's what you want, then fine.
BDH specifically wanted it to only insert the IP address on inserts, but not change it on updates, I believe.