Spip doesn't record IPs correctly

Spip doesn’t record IPs correctly. In front of deleted or spam comments appear IPs, but they are not the actual IPs.
Do you know what the problem is?
I have SPIP 3.0.17 [21515].

SPIP doesn’t store IP addresses because they are personal data - and SPIP doesn’t store them directly.
This is due to an european law.