This function sends the given data using a socket.
- bool Socket.Send( string szData )
- szData - This is the data you want to send via the socket as a string
- function onPlayerChat( player, text )
- p_Socket.Send( "PRIVMSG #CHANNELNAME " + text + "\n" );
This would send the text that the player said to #CHANNELNAME if it was connected to an IRC server. p_Socket was created in the Connect function.
The call onPlayerChat was used in in this example. More info about this in the corresponding page.