Does anyone know of a script that would allow users to chat across 2 or more networks?

I.E. a bot that resides in #channel-a on network1 and in #channel-b on a completely different net. That allows users in #channel-a to see all the chat and events in #channel-b and vice versa. Allowing them to private message one another through the bot would be a plus but its not necessary.

Does that make sense and thanks for any info on this.