1) You can't. They are two different files.
2) Unless you have IRCops status, you can't be guaranteed of being able to get a person's IP address, so I don't recommend this.
3) Please read the New to the forums sticky, specifically the section that says
Quote:
e) Realize YOU have to do work to solve the problem you are having. People here can offer ideas/suggestions/input and maybe even solve things entirely, but it's up to YOU to do the work.


Taking what we've already given you, and combining it with some reading of the help file, should be more than sufficient to get you the code.