Ok, the after 3 tries thing works fine, BUT, it doesn't ban right.
King_Lanky is the person I was testing it on, he was the one in the %deoplist who shouldn't be opped, and he had the Pipex IP.

Handom was the one who was opping him to help me test it.
Here's what it did after 5 times:

* pilot1 sets mode: -o+b Handom *!*Random@81-86-81-239.dsl.pipex.com

It deoped Handom and banned Lanky, but it should be deopping and banning them both, any ideas?