This is actually kinda what I'm trying to do myself-except have it parse a txt file of IPs/hostmasks and if any matches in the txt file echos the result to me when someone joins so I'm aware of a potential trouble maker joining the chan.
Any help would be appreciated, Thanks