Send a message to an IRC channel. This is a very simplistic implementation.

Options

namedescriptionrequiredchoices
server IRC server name/address
port IRC server port number
nick Nickname to send the message from. May be shortened, depending on server's NICKLEN setting.
msg The message body. true
topic Set the channel topic
color Text color for the message. ("none" is a valid option in 1.6 or later, in 1.6 and prior, the default color is black, not "none"). Added 11 more colors in version 2.0.
  • none
  • whiteblackbluegreenredbrownpurpleorangeyellowlight_greenteallight_cyanlight_bluepinkgraylight_gray
channel Channel name. One of nick_to or channel needs to be set. When both are set, the message will be sent to both of them. true
nick_to 1. list of nicknames to send the message to. One of nick_to or channel needs to be set. When both are defined, the message will be sent to both of them.
key Channel key
passwd Server password
timeout Timeout to use while waiting for successful registration and join messages, this is to prevent an endless loop
use_ssl Designates whether TLS/SSL should be used when connecting to the IRC server
part Designates whether user should part from channel after sending message or not. Useful for when using a faux bot and not wanting join/parts between messages.
style Text style for the message. Note italic does not work on some clients
  • bold
  • underlinereverseitalic

Author

"Jan-Piet Mens (@jpmens)" ,"Matt Martz (@sivel)"