Here's an interesting bug (or feature?) in the block code:
If an IP address is blocked with expiry X, and the corresponding user is blocked with expiry Y, and the user logs on, his IP will be anonymously-blocked for 24 hours, but the date X on the original IP block will also be set to 24 hours in the future, *even if this is a reduction.*
wikitech-l@lists.wikimedia.org