CwIRC.Interface.NOTICE C# (CSharp) Method

NOTICE() public method

Sends the NOTICE message to the IRC server, with the specified message and target channel.
public NOTICE ( 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 NOTICE(string p_message, string p_target)
        {
            SendData("NOTICE " + p_target + " :" + p_message);
        }

Usage Example

コード例 #1
0
ファイル: MoronBot.cs プロジェクト: StarlitGhost/MoronBot
 /// <summary>
 /// Sends the specified notice to the specified channel or user (Sends the NOTICE message).
 /// </summary>
 /// <param name="p_message">The notice to send.</param>
 /// <param name="p_target">The channel or user to send the notice to.</param>
 public void Notice(string p_message, string p_target)
 {
     Log(string.Format("[{0}] {1}", Nick, p_message), p_target);
     cwIRC.NOTICE(p_message, p_target);
 }