First, sorry if the question has been asked before, I searched for a wile and didnt find the answer.

Now, I want to do a simple script who reads text in a network and sends a /mgs in another network, but I'm a noob and dont know how to send the msg to other network.

Can someone help me?

PD: Sorry for my bad English, as you can see this isnt my mother language ^^U