If the person did /dns (nick here)
IT would tell them the ip of that nick provided that person is on of course.
No scripting needed, just as easy for them to type... shocked


As for the IP, read what argv0 said above.