A script could do it, assuming you have access to each users IP, but most irc servers create a unique but randomized address for each user to protect there identity, this would strop u from being able to identify there exact location or ip i would think.