JIPADDRESS is the system detected IP of person logging & $val is an element out of your 'banning list'. Would think it'd be a simple matter to test both IPADDRESS(your job IP) and the current forumid / user trying to log in.
As I recall, the ip test is so early in the process that the user details are not known at that point.