This would require each user to have SQL or MySQL installed on their local machine and would only be useful if logging were turned on and they were online 24/7 and were in all rooms on a server and ...
Naw, too many and s.
If you are asking to have mIRC search the forums for information, they are not the same client and do not share the same "space". I run a web site with both a forum and a chat server and the server is on a different host entirely due to security problems inherent in chat servers.
I would immagine it would be like getting an elephant pregnant. There would be a lot of loud noise followed by 12 months of labor and the end product wouldn't necessarily be what you expected.