instance method IRC#privmsg

View Source on GitHub →

IRC#privmsg( receiver, message [, protect] ) → self
  • receiver (String) – Recipient of message, can be either a user nick or a channel.
  • message (String) – Message to send.
  • protect (Boolean) – Flood protection for long messages, if true will delay messages. Default: false. If flood_protection is set in the constructor options argument this value is used if the protect argument is not passed.

Send a message to a user or channel. privmsg will automagically split long messages into multiple messages.

Examples

irc_instance.privmsg( '#asl', 'What\'s up ladiiieeeessssss!?' ) // Ask the ladies `what's up`