示例#1
0
        /// <summary>
        /// Send login information.
        /// </summary>
        public static async Task Register(this IrcClient client,
                                          string nickname, string username,
                                          string realName, string password = null)
        {
            if (password != null)
            {
                await client.SendParams("PASS", password);
            }
            await client.SendParams("NICK", nickname);

            await client.SendParamsTrailing("USER", username, "8", "*", realName);
        }
示例#2
0
 /// <summary>
 /// Sends a NOTICE.
 /// </summary>
 public static async Task Notice(this IrcClient client,
                                 string destination, string text)
 {
     await client.SendParamsTrailing("NOTICE", destination, text);
 }
示例#3
0
 /// <summary>
 /// Parts specified channel with a goodbye message.
 /// </summary>
 public static async Task Part(this IrcClient client, string channel,
                               string partMessage)
 {
     await client.SendParamsTrailing("PART", channel, partMessage);
 }