CwIRC.Interface.PRIVMSG C# (CSharp) Method

PRIVMSG() public method

Sends the PRIVMSG message to the IRC server, with the specified message and target channel.
public PRIVMSG ( string p_message, string p_target ) : void
p_message string The message to send.
p_target string The channel (or user) to send the message to.
return void
        public void PRIVMSG(string p_message, string p_target)
        {
            SendData("PRIVMSG " + p_target + " :" + p_message);
        }

Usage Example

Example #1
0
 /// <summary>
 /// Sends the specified message to the specified channel or user (Sends the PRIVMSG message).
 /// </summary>
 /// <param name="p_message">The message to send.</param>
 /// <param name="p_target">The channel or user to send the message to.</param>
 public void Say(string p_message, string p_target)
 {
     Log(string.Format("<{0}> {1}", Nick, p_message), p_target);
     cwIRC.PRIVMSG(p_message, p_target);
 }