/// <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); }
/// <summary> /// Sends a NOTICE. /// </summary> public static async Task Notice(this IrcClient client, string destination, string text) { await client.SendParamsTrailing("NOTICE", destination, text); }
/// <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); }