Added support for multiple networks in the chat